How to load alerting rules from directory

30 views
Skip to first unread message

Menglong li

unread,
Jun 4, 2020, 12:16:55 AM6/4/20
to Prometheus Users
I tried to load promethues rules file from a directory  by below configuration

rule_files:
    - /etc/prometheus/rules/*.rules

but it gets a error as below

D040B02F-B5D1-40A8-B65C-BF9E41190B66.png


someone  said That feature is already supported 🙂 you can load rule files via a file glob.

anyone can give a example?

Menglong li

unread,
Jun 4, 2020, 3:11:28 AM6/4/20
to Prometheus Users
already solved

在 2020年6月4日星期四 UTC+8下午12:16:55,Menglong li写道:
Reply all
Reply to author
Forward
0 new messages