You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The collected data contains number of events the last minute (reset every minute).
I worry about the timing of things here:
scollector script runs every 55 seconds to collect data and send to prometheus_scollector proxy.
prometheus_scollector proxy holds the data for a minute
Prometheus scrapes every minute to collect that data.
scollector script could be a bit delayed because of high resource usage, and Prometheus could read the same sample twice.
It seems like the timestamp used in the scollector sample data is thrown away by the prometheus_scollector proxy and therefore not scraped by Prometheus. It would expect it to have been used for sample deduplication.
Is there a way to handle sample deduplication by passing on a "unique key" to Prometheus?
Brian Brazil on the prometheus-users mailing list:
The way to do that is via the timestamp. That's not supported by any client library yet though, including the Go client which prometheus_scollector uses.
The text was updated successfully, but these errors were encountered:
We scrape metrics from servers every minute using the https://github.com/tgulacsi/prometheus_scollector/ "proxy", in order to use scollector plugins.
The collected data contains number of events the last minute (reset every minute).
I worry about the timing of things here:
scollector script could be a bit delayed because of high resource usage, and Prometheus could read the same sample twice.
It seems like the timestamp used in the scollector sample data is thrown away by the prometheus_scollector proxy and therefore not scraped by Prometheus. It would expect it to have been used for sample deduplication.
Is there a way to handle sample deduplication by passing on a "unique key" to Prometheus?
Brian Brazil on the prometheus-users mailing list:
The way to do that is via the timestamp. That's not supported by any client library yet though, including the Go client which prometheus_scollector uses.
The text was updated successfully, but these errors were encountered: