Signed-off-by: Zack Cerza <zack@redhat.com>
- ['1m', '30d']
- ['15m', '5y']
```
+- `update_alerts`: Whether to update the alerts dashboard along with the rest. Removes any user-defined alerts. Default: false
These variables are only relevent when `devel_mode` is true:
- `use_epel`: Whether or not to use EPEL and grafana.com instead of ceph.com-sourced packages for dependencies. Default: false
# graphite defaults are now in the cephmetrics-common role since the
# ceph-collectd role needs access to them
replace_dashboards: true
+ update_alerts: false
grafana:
datasource: Local
# Note: changing this value won't update the password in Grafana itself;
- dashboards
- name: Push dashboards to Grafana
- command: "{{ dashupdate_cmd }} -m {{ dashupdate_mode }} -c /tmp/dashboard.yml -D {{ dashboard_dir }}"
+ command: "{{ dashupdate_cmd }} -m {{ dashupdate_mode }} -c /tmp/dashboard.yml -D {{ dashboard_dir }}{{ ' -A' if update_alerts else '' }}"
tags:
- dashboards