How To set multiple Prometheus scrape_interval

Hey guys, 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 :slight_smile:

Hello :wave: and welcome to the forum, @hayunofek

I think this blog post might prove useful. This is a valuable blog for these types of Prometheus questions: