How to keep old metrics data #461
Unanswered
yangtaoran
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Yes, this is the intended behavior. If you push metrics using the PUT method, all metrics in the group are replaced by the pushed metrics. If you use the POST method, only the metrics with the same name are replaced, but that still results in the behavior you have observed. If you want to keep all the metrics above, you have to make the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this sense:
test_metric {code=200} 2 test_metric {code=300} 3
test_metric {code=400} 4
Finally, I scrap metrics from pushgateway, the result is this:
test_metric {code=400} 4
But what I expect is like this:
test_metric {code=200} 2 test_metric {code=300} 3 test_metric {code=400} 4
Is there any way to to achieve what I want?
And two times have same job.
Beta Was this translation helpful? Give feedback.
All reactions