Re: [prometheus-developers] Most recent Timeseries in case of GAUGE metrics

2023-09-05 Thread Matt Doughty
The pushgateway does use the prometheus pull mechanism. I'd really suggest taking a look at it: https://github.com/prometheus/pushgateway As for how to export a timestamp, The timestamp metric would just be a sister metric to your main metric and you would update when you update the main metric

Re: [prometheus-developers] Most recent Timeseries in case of GAUGE metrics

2023-09-05 Thread sunil sahu
Thanks for quick response Yes you understood it correctly. Earlier we were using push mechanism only for statsd format metrics from our custom/on promise instaces. But now want to use promql format with pull mechanism. It would be great help islf you can share example for exporting timestamps

Re: [prometheus-developers] Most recent Timeseries in case of GAUGE metrics

2023-09-04 Thread Matt Doughty
So if I'm understanding you correctly. You have multiple pods exporting a gauge based on a remote request, and because it is load balanced the request could go to one of many pods, and you are trying to figure out which one is the most recent? This sounds like a perfect use case for pushgateway

Re: [prometheus-developers] Most recent Timeseries in case of GAUGE metrics

2023-09-04 Thread Stuart Clark
On 25/08/2023 04:37, sunil sahu wrote: Hello All, I need help in my below use case. We have a centralized python application which continuously monitors state for other applications by running tests. We creates *GUAGE* metrics with a value (Ex. 100) and set to different value when state

[prometheus-developers] Most recent Timeseries in case of GAUGE metrics

2023-09-04 Thread sunil sahu
Hello All, I need help in my below use case. We have a centralized python application which continuously monitors state for other applications by running tests. We creates *GUAGE* metrics with a value (Ex. 100) and set to different value when state changes (Ex. 200 or 300) using gauge's set