Closed bizzyman7 closed 1 year ago
The problem is that your timestamp is too far in the past. Note how the log line is emitted at 04:55 while the timestamp is 04:34.
Prometheus and Graphite differ in their model with time; while Graphite samples are "at that particular time", Prometheus is much more about the now. On the other hand, in Graphite when you don't send a sample for a time window, there's no data at that time, while Prometheus (clients) generally hold the last value.
This exporter reconciles that by holding the last value it has seen for Prometheus to scrape, but dropping the metric if it hasn't gotten a newer sample within 5 minutes. This is configurable with the --graphite.sample-expiry
flag. In your case, the exporter accepted a sample that was 11 minutes old and immediately expired it. We could probably log a clearer message in this case… anyway I hope this explanation is helpful.
Hi, Just a help wanted issue I believe.
I'm attempting to convert over to prometheus from graphite and starting small.
I'm sending metric:
With debug on, I see a message like this from the exporter:
Config:
However I never this metric on http://localhost:9108/metrics
Am I doing something wrong?