Skip to content

Create configurable metrics #3975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 24, 2025
Merged

Conversation

nikola-jokic
Copy link
Collaborator

This PR adds configurable metrics to the listener, allowing users to trim down labels, remove metrics and modify histogram buckets.

⚠️ The default values.yaml file includes all the metrics. It serves both as a documentation, and as a starting point. However, if no metrics are specified, no metrics will be registered.

One important thing to note is for histograms, if buckets are not specified, the default buckets will be used.

Fixes #3153

@nikola-jokic nikola-jokic added the gha-runner-scale-set Related to the gha-runner-scale-set mode label Mar 18, 2025
var errUnknownMetricName = errors.New("unknown metric name")

func installMetrics(config v1alpha1.MetricsConfig, reg *prometheus.Registry, logger logr.Logger) *metrics {
logger.Info(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍😁👍

Copy link
Member

@Link- Link- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@nikola-jokic nikola-jokic merged commit 5a960b5 into master Mar 24, 2025
19 checks passed
@nikola-jokic nikola-jokic deleted the nikola-jokic/configurable-metrics branch March 24, 2025 14:27
@FireGrey FireGrey mentioned this pull request Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gha-runner-scale-set Related to the gha-runner-scale-set mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

High cardinality of metrics
2 participants