Skip to content

Label value Coverage issues #588

Answered by beorn7
bobosmile1170556238 asked this question in Q&A
Discussion options

You must be logged in to vote

As per the documentation, the PUT method always replaces all metrics in the same group, while the POST method only replaces metrics with the same name (AKA the metric family).

In your example, you are always pushing to the same group (job/memory), or in PromQL syntax {job="memory"}. Also, you only push a metric named memory (note that this is the metric name and has nothing to do with the job label value memory given in the grouping key). So in either case, you will replace the previously pushed metrics.

If you want to push both of them in different pushes, and you want both of them to co-exist on the PGW, you have to push them into different groups. In your case, you could make the code

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bobosmile1170556238
Comment options

Answer selected by bobosmile1170556238
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #587 on October 24, 2023 15:04.