In the meantime, we need this for event logging (alert status).
Signed-off-by: Boris Ranto <branto@redhat.com>
dest: "{{ collectd_conf_d }}/write_graphite.conf"
regexp: 'Host ".*"'
replace: "Host \"{{ groups['ceph-grafana'][0] }}\""
- when: backend == 'graphite'
notify: Restart collectd
- name: Set cluster name in cephmetrics.conf
regexp: 'EventURL ".*"'
insertafter: 'ClusterName ".*"'
line: " EventURL \"http://{{ groups['ceph-grafana'][0] }}:{{ graphite.web_port if graphite.service == 'graphite-web' else graphite.api_port }}/events/\""
- when: backend == 'graphite'
notify: Restart collectd
- name: Set ModulePath in cephmetrics.conf
- name: Install collectd-write_prometheus
package:
- name: collectd-python
+ name: collectd-write_prometheus
state: latest
when:
- backend == "prometheus"
- include: configure_carbon.yml
when:
- - backend == "graphite"
- not containerized_deployment
tags:
- carbon
- include: configure_graphite.yml
when:
- - backend == "graphite"
- not containerized_deployment
tags:
- graphite
# graphite-web is served by apache
- "{{ graphite.apache_name[ansible_pkg_mgr] }}"
- grafana-server
- when: backend == "graphite"
- name: Enable and start services (prometheus)
service: