Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow Modification of Metric Names During Federation #2647
Comments
This comment has been minimized.
This comment has been minimized.
|
This is already possible via metric relabelling, however adding a label instead would be recommended instead of changing the metric name as labels are how you namespace such things. Usage questions are best asked on https://groups.google.com/forum/#!aboutgroup/prometheus-users |
brian-brazil
closed this
Apr 20, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
civik commentedApr 20, 2017
•
edited
It would be useful to have the ability to 'prepend' / 'modify' / 'insert from label' the metric names upon federation.
Take the use case of pulling metrics from tenant environments where user metrics are scraped and given tags widget_metric{job="userdata", namespace="bobsnamespace"} . To avoid polluting the 'root' metrics and enforce some sort of namespacing onto users in a multi-tenant environment, I would federate and insert values from tags into the metric name and end up with a metric:
userdata_bobsnamespace_widgit_metric