On 12/08/2022 08:09, nina guo wrote:
OK. So if I want to scrape the metrics for 1 day interval, which way is better to implement?

Some options would be:

- Scrape it every 2 minutes instead of daily
- Use the textfile collector of the node exporter, with a scheduled job to update the file daily
- Use the push gateway with a scheduled job that updates the API daily

For the second two options you will lose the ability to use the "up" metric (as that will now refer to the node exporter/push gateway instead), but both add their own additional metrics containing timstamps of the last time the metric was updated.

--
Stuart Clark

--
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ca768714-190e-93da-84ff-66ce4878d2d4%40Jahingo.com.

Reply via email to