10 views
Skip to first unread message

rs vas

unread,
Mar 1, 2020, 6:22:14 PM3/1/20
to Prometheus Users
Hi, I would like to include all the rule files in prometheus.yml configuration but with no luck:
rule_files:
  - "/etc/prometheus/*.yml"
I am trying to follow the syntax from https://prometheus.demo.do.prometheus.io/config can someone please help!
Getting error on prometheus start:

Thanks!



Murali Krishna Kanagala

unread,
Mar 1, 2020, 9:04:37 PM3/1/20
to rs vas, Prometheus Users
It's not a good idea to keep prometheus.yml and the rest of the scrape config files in the same path.

Create a sub directory under /etc/prometheus to keep the scrape config files. 

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAPs_Afg%3DHv%3Dz-45-f70aKw7JgLOcTYepbt4ipaG8dnmwZS3mtA%40mail.gmail.com.

rs vas

unread,
Mar 1, 2020, 10:26:48 PM3/1/20
to Murali Krishna Kanagala, Prometheus Users
Got it, thank you! that means below syntax works fine for including all rules?

rule_files:
  - "/etc/prometheus/rules/*.yml"
Reply all
Reply to author
Forward
0 new messages