Hi, I’m trying to add a chart which shows the changing number of target nodes that I am scraping. Using this query.
I get a level line that accurately shows the current sum of my targets (across all jobs) – at present. But, that’s not what I want.
I then tried out sum(rate(prometheus_target_scrape_pool_targets[1h])) but that returns “0”
So, what am I missing with my query in order to get a moving graph of targets over time?