Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all recording rules to be in a subdirectory in Prometheus #4787

Closed
lagunabeach opened this Issue Oct 25, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@lagunabeach
Copy link

lagunabeach commented Oct 25, 2018

Hi All,

I have been assigned a task in Prometheus to move all recording rules to be in a subdirectory rather than directly in /etc/prometheus. How can this be done. Any help on this would be greatly appreciate it.

Thank you!

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Oct 26, 2018

You want to use the rule_files: parameter in the Prometheus configuraiton (eg rule_files: [ "/some/directory/with/rules/*.yml", "/another/directory/*.yml"], see https://prometheus.io/docs/prometheus/latest/configuration/configuration/#configuration-file

I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.