-
Notifications
You must be signed in to change notification settings - Fork 183
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
Relabel pod and service dimensions for non-pod metrics #878
Relabel pod and service dimensions for non-pod metrics #878
Conversation
sourceLabels: [job, __name__] | ||
- action: labelmap | ||
regex: (pod|service) | ||
replacement: sumo_metrics_${1} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit. sumo_metrics_ as the prefix feels unintuitive. In this case, pod
and service
are pointers to the pod/service that Prometheus scraped the data from. Let's change it sd_
to indicate it is part of the service discovery mechanism.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should go further and use service_discovery_${1}
- no need to use the non-obvious abbreviation.
3205de6
to
740cb66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but +1 to Perk's suggestion
Co-authored-by: Marcin Stożek <marcin.stozek@gmail.com>
6f1ea87
to
8b43864
Compare
Description
Relabel pod and service dimensions for non-pod metrics
Testing performed