I have been scraping the internet trying to find a way to set specific scrape_interval for specific collectors. For example, I want all of my collectors from node exporter to have a scrape_interval of 1m so I won’t overpopulate my prometheus and this way I can keep a reasonable amount of active series, but when having a scrape_interval of 1m, the metrics of cpu stops working, since they need more datapoints. So I want specifically to set scrape_interval of cpu to 15s and the rest for 1m.
How can I achieve something like this? Thanks a bunch, Have a good day :)
server:
http_listen_port: 12345
prometheus:
wal_directory: /tmp/grafana-agent-wal
global:
scrape_interval: 45s
configs: null
integrations:
node_exporter:
enabled: true
set_collectors:
- cpu
- cpufreq
- devstat
- diskstats
- filesystem
- loadavg
- meminfo
- netclass
- netdev
- netstat
- processes
- vmstat