Replies: 4 comments 1 reply
-
For Prometheus |
Beta Was this translation helpful? Give feedback.
-
Thanks. I see it . However, how can I make the old metric invalid. Now the sum value of the metrics with label1 will be double. |
Beta Was this translation helpful? Give feedback.
-
What do you mean by |
Beta Was this translation helpful? Give feedback.
-
I'll turn this into a discussion though. |
Beta Was this translation helpful? Give feedback.
-
What did you do?
I have a metric of cluster node's resource with several label, eg: label1, label2, label1's value won't be empty, but value of label2 can be empty.
At first, the node has label2 with value2, so does the metric.
After I remove the label2 from node, then there is another metric wihout label2, instead of empty string value of label2 in the origin metric(I set the value of empty string to the metric if value is empty).
What did you expect to see?
before:
metric{label1="value1", label2="value2"} 1
after value2 change to ""
metric{label1="value1", label2=""} 1
What did you see instead? Under which circumstances?
metric{label1="value1", label2="value2"} 1
metric{label1="value1"} 1
System information
Linux 3.10.0-1062.9.1.el7.x86_64 x86_64
Prometheus version
Prometheus configuration file
Alertmanager configuration file
No response
Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions