Replies: 5 comments
-
I don't think this is currently possible in prometheus. If you are using grafana though, you can realize this using variables. |
Beta Was this translation helpful? Give feedback.
-
Try something like this: |
Beta Was this translation helpful? Give feedback.
-
Hi @IldarMinaev, your answer was very useful. Thanks. Now I need to create a chart from this result, something like this:
But I'm getting this error: I also tried something like this: But I got this: |
Beta Was this translation helpful? Give feedback.
-
Hello from the bug scrub. Apologies for the delay in responding to this. This is more of a usage question and so converting to a discussion. |
Beta Was this translation helpful? Give feedback.
-
When comparing label values for a single metric in Prometheus, you are essentially looking at the different label combinations that identify specific instances or dimensions of that metric. Prometheus uses labels to provide additional identifying information about the data being collected, allowing you to filter and aggregate metrics in powerful ways. |
Beta Was this translation helpful? Give feedback.
-
Proposal
Use case. Why is this important?
Some exporters give important information in form of labels in a single metric.
For example, mysqld exporter has a metric
mysql_global_status_wsrep_cluster_info{"cluster-uuid":"1122", "local-uuid":"1122"}
If the cluster uuid is not equal to local uuid, an alert needs to be raised as all the nodes in the cluster needs to have the same cluster uuid.
I have not found any functionality regarding comparing labels of a single metric.
Beta Was this translation helpful? Give feedback.
All reactions