Change scrape interval for certain labels?

11 views
Skip to first unread message

Scott Rodden

unread,
May 2, 2020, 12:43:39 PM5/2/20
to Prometheus Users
We are using mysqld_exporter and want to gather proclist information but on a different interval from the rest of the metrics that are being scrapped. This is mainly due to the size of the scrapes and data that frankly is not all that meaningful. My question is, either thru Prometheus or the mysqld_exporter itself, can we specify to only scrape info_proclist (or any label) every minute instead of 15 seconds, while also leaving the global scrape_interval at 15s? 

Thanks for the help.

Brian Brazil

unread,
May 2, 2020, 2:48:45 PM5/2/20
to Scott Rodden, Prometheus Users
On Sat, 2 May 2020 at 17:43, Scott Rodden <srod...@gmail.com> wrote:
We are using mysqld_exporter and want to gather proclist information but on a different interval from the rest of the metrics that are being scrapped. This is mainly due to the size of the scrapes and data that frankly is not all that meaningful. My question is, either thru Prometheus or the mysqld_exporter itself, can we specify to only scrape info_proclist (or any label) every minute instead of 15 seconds, while also leaving the global scrape_interval at 15s? 

The global value can be overridden per scrape_config, so split the targets using keep/drop into two scrape configs.

Note that if you're worried about Prometheus performance, Prometheus compresses constant and slowly changing time series very well.

--
Reply all
Reply to author
Forward
0 new messages