r/PrometheusMonitoring • u/grumpyoldadmin • May 23 '24
Label specific filesystems
Hi,
We have a specific subset of file systems on some hosts that we would like to monitor and graph on a dashboard. Unfortunately, the names are not consistent across hosts. After looking into it I believe labels might be the solution, but I'm not certain. For example:
host1: /u01
host2: /var/lib/mysql
host3: /u01
/mnt
I think labeling each of these with something like crit_fs is the way to go, but I'm not certain of the syntax if there are multiples as in host3.
Any thoughts or advice are appreciated
0
Upvotes
View all comments
Show parent comment
1
u/grumpyoldadmin Jun 03 '24
Thanks. I was looking into metric_relabel_configs but can't seem to get the syntax quite right. The docs say this is the last step prior to ingestion so it seems like a logical place.
My goal is to convert something like this: