Replies: 2 comments
-
Refreshing the metrics endpoint of pushgateway, I see that the metrics are getting overridden sometimes it shows the one vnf other times it will show the other |
Beta Was this translation helpful? Give feedback.
0 replies
-
See https://github.com/prometheus/client_python#exporting-to-a-pushgateway : "Pushgateway functions take a grouping key. If you want to see metrics from both instances in parallel, you have to include the instance label in the grouping key. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature request
So that asnc ephermal tasks can push results to prometheus without conflict. data is being lost and i dont know why
“Nice to have” is not a good use case. :)
Bug Report
**What did you do?ich circumstances?
I have a flask endpoint that is responsible for launching the following celery task:
Each task is supposed to monitor a unique vm and get the cpu data. due to certain requirements this is the only way to get the cpu data out of the vm.
The metrics appear perfectly in prometheus when there is only one task running. when a second task is launched the metrics that are stored in prometheus are very spotty. There appears to be some conflict but I am not clear on what that is.
Looking at the logs on my celery task I can see that the ssh command is succeeding and it getting the correct CPU numbers. I have looking into grouping_key, job, and instance documentation, but its very poor. I have tried a few changes but with no success. for a little more backround the job, represents a unique id of a given testing cycle, the instance is the name of a VM, and then each instance may have 2-8 cpus.
Environment
System information:
Pushgateway version:
Pushgateway command line:
Logs:
Beta Was this translation helpful? Give feedback.
All reactions