I don't really understand what you're trying to say.

Does your exporter include timestamps for each metric?  These are 
optional.  It's almost always best not to include them unless you are 
*really* sure you know what you're doing.  Notice that none of the standard 
exporters, like node_exporter, include timestamps.  In that case, clock 
sync between prometheus server and exporter is irrelevant.

If you do include timestamps, and the values are too far in the past, or 
out of sequence, then prometheus will discard the metrics and log an 
error.  You might need to run prometheus with --log.level=debug to see them.

If you're trying to export the time when some event happened - e.g. the 
time when a job was last run - then *don't* use the prometheus metric 
timestamp for this.  Instead, expose a separate metric which is the 
timestamp as a Unix time.  For an example of this in action, see how the 
node_exporter textfile collector returns the timestamp of the textfile it 
returned.

-- 
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/1f5f6727-5dd5-4e41-bdf7-3074216af84co%40googlegroups.com.

Reply via email to