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

[prometheus-developers] Re: Proposal: refactoring rules seriesInPreviousEval

2023-09-05 Thread Bryan Boreham
Are you building with -tags stringlabels? This tends to reduce memory used by Labels. Also I hope to reduce memory much more, though work stalled for a bit. (PR ) Since Prometheus has to store all the output series in the head, I wouldn't

Re: [prometheus-developers] Rename "start_time_seconds" to "start_timestamp_seconds"?

2023-09-05 Thread 'Kevin Wiesmueller' via Prometheus Developers
Changing this would be a pretty problematic breaking change for consumers. We're heavily relying on this timestamp and if we get two different names from it depending on the client version that would require some adapting. On Mon, Sep 4, 2023 at 10:03 AM 'Fabian Stäber' via Prometheus Developers