Using globs in Prometheus rules configuration
Instead of using:
rule_files: - node-rules.yaml - api-rules.yaml
You can use:
rule_files: - "*rules.yaml"
This will import all files that have prefix
rules.yaml
. Finally, restart the prometheus service.