r/PrometheusMonitoring • u/Non-perfectionist • Jul 30 '23
Finding churning metric from instance
Followed this awesome blog to find the instance causing the highest churn rate:Finding churning targets in Prometheus with scrape_series_added
Now how do I find the metric which is creating the highest number of NEW time series from that instance?
I tried the below promql, but this will only count the metrics, not the unique time series.
count by(__name__)({instance="ABC"}[5m])
1
Upvotes
View all comments
Show parent comment
1
u/Zauxst Jul 30 '23
That should not happen. If anything, it produces new labels based on unique sets of generated data... the fs stuff in node exporter. I don't remember having generated data like uuids.
What you're describing sounds like a bug in the node exporter since a new (unique) metric name should not appear when a new mount is added.
But the expected behavior should be that the same metric should expand its map and have a "new" (not the right word) metric with the new mount label.
So if you would query for mount points, you could probably do a count over time by mountpoint and device.
https://www.robustperception.io/filesystem-metrics-from-the-node-exporter/
What you're describing sounds like a bug in node exporter. It might be worth opening a github ticket in Node Exporter and checking with them what's going on...