Alert rule for specific node

13 views
Skip to first unread message

Shruthi P

unread,
Oct 29, 2020, 6:45:02 AM10/29/20
to Prometheus Users
Hi I want to write an alert rule for node filesystem device error . But that will show alert if any of the nodes report file system device error. I want it specific for prometheus node.

Brian Candler

unread,
Oct 29, 2020, 11:40:44 AM10/29/20
to Prometheus Users
Every alert rule is just a promQL query.  If that query returns a non-empty set of timeseries, then the alert fires.

If you want the alert only to trigger for a particular node, then include a label matcher that matches only that node. e,g,

expr: node_foo{instance="blah"} > 0

Reply all
Reply to author
Forward
0 new messages