-
Notifications
You must be signed in to change notification settings - Fork 454
prometheus_alert_rules are not copied as expected #148
Comments
Alerting rules are copied to
We figured there is no need to create alerting rules when you don't have alertmanager configuration. This task is responsible for that: ansible-prometheus/tasks/configure.yml Lines 2 to 15 in 80388e6
|
Ah, I see. I had not provided It would be good if it printed a message just like yours, i.e. "no need to create alerting rules when you don't have alertmanager configuration", in this case. Also, a minor thing, the README states it will be copied to |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello, I am having problems with setting up default alerts in configuration.
Version: 2.3.3
Expected behaviour
When the
prometheus_alert_rules
file is populated with some rules, and I then provision the instance, a file should be created in{{ prometheus_config_dir }}/rules/basic.rules
containing those rules.Actual behaviour
The
{{ prometheus_config_dir }}/rules/
directory exists but is empty, and Prometheus sees no alerts configured. This occurs even if I simply use the default value forprometheus_alert_rules
Other properties I am using (for example,
prometheus_scrape_configs
andprometheus_alertmanager_config
) seem to work just fine.The text was updated successfully, but these errors were encountered: