Problems with one push_to_gateway flushing metrics created by previous push_to_gateway for different counters #880
Jacek-ghub
started this conversation in
General
Replies: 1 comment 3 replies
-
Hello, This is how Push Gateway works, if a push is sent with the same job it will overwrite anything for that job. Your options are to either have separate job names, or you can use the Hope that helps, you can find more information on grouping in the Push Gateway Docs. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having problems with push_to_gateway from one script flushing stats for the same job that came through another script. Here are my scripts:
and
Those scripts are hit by apache server based on its activity.
Not sure whether I understand it right, but it looks like I would need to create CollectorRegistry in a separate process and let those two scripts somehow piggy back to that registry. Although, looking through the push_to_gateway code I didn't see anything that would help me to do it.
What I am trying to achieve is to have just one job in PushGateway that would have all my counters. However, maybe this is not a good way to do it, and just let those batch files to create unique job names (JOB_NAME in those two scripts above).
I am not sure how to approach this problem. Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions