kolla-ansible/ansible/roles/ceilometer/tasks/precheck.yml
Juan Pablo Suazo 6cf03122ee Support Prometheus as metrics database for Ceilometer
This commit adds support for pushing Ceilometer metrics
to Prometheus instead of Gnocchi or alongside it.


Closes-Bug: #1964135
Signed-off-by: Juan Pablo Suazo <jsuazo@whitestack.com>
Change-Id: I9fd32f63913a534c59e2d17703702074eea5dd76
2022-03-21 14:20:02 +00:00

16 lines
419 B
YAML

---
- import_role:
name: service-precheck
vars:
service_precheck_services: "{{ ceilometer_services }}"
service_name: "{{ project_name }}"
- name: Checking gnocchi backend for ceilometer
fail:
msg: "gnocchi is required but not enabled"
run_once: True
changed_when: false
when:
- enable_ceilometer | bool
- not (enable_gnocchi | bool or enable_ceilometer_prometheus_pushgateway | bool)