So if with push gateway or textfile collector, we need to also to customize our metrics, am I right?
On Friday, August 12, 2022 at 3:17:09 PM UTC+8 Stuart Clark wrote: > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ca5f7551-2dd3-46de-9331-c12e2f12cd29n%40googlegroups.com.

