On 07/07/2020 20:20, copocaneta wrote:
This user at github asked this question
<https://github.com/prometheus/node_exporter/issues/1284#issuecomment-605718841>
that was not answered:
judos commented on Mar 29
Can anyone explain why the node exporter does not support
timestamps for custom metrics? So what else should I do for
metrics that are not updated as often as the node_exporter is called ?
I share the same question, can anyone else help here?
What to do for metrics that are not updated as often as the
node_exporter is called?
You can't use timestamps in that case anyway as you'd end up with
duplicate metric errors when scraping.
You just set the metrics via the textfile collector. It doesn't matter
how frequently the node exporter is scraped.
If you want to know the time a certain less frequent process happened
use a gauge where the value is a unix timestamp.
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/fa59b93e-d576-9a3a-a061-366d7633531c%40Jahingo.com.