On Friday, 12 August 2022 at 08:50:28 UTC+1 [email protected] wrote: > I'm worried about the blackbox_exporter is expensive or not. > > You are, or are not, worried about this?
> I also have other jobs, other jobs are with global 30s scrape intervals > and 30s evaluation invervals, when I set the special job with scrape > interval 2m, will it cause any problem? > > Each job defines its own scrape interval. The global default is used only if it doesn't define its own scrape interval. Similarly, each alerting rule group defines its own evaluation interval. The global default is used only if it doesn't define its own evaluation interval. Scraping and rule evaluation run entirely independently. > " > If you only want to *check* a value every 1 day for alerting, then it's > perfectly fine to have an alerting rule group with a 1 day evaluation > interval - even if the underlying metric is collected more frequently. The > alerting rule will use the most recent value at evaluation time. > " > regarding this point, is it possible to set alerting rule group for a > special rule or a job? > I don't understand the question. You can create as many alerting rule groups as you like, and each rule group can have as many alerting rules as you like. Each alerting expression can access *all* the metrics in the TSDB - it is not tied to a specific scrape job. https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/ -- 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/848984ad-044c-47db-a19a-326c6a536528n%40googlegroups.com.

