kolla-ansible/ansible/roles/ceilometer/templates/pipeline.yaml.j2
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

17 lines
434 B
Django/Jinja

---
sources:
- name: meter_source
meters:
- "*"
sinks:
- meter_sink
sinks:
- name: meter_sink
publishers:
{% if enable_gnocchi | bool %}
- gnocchi://
{% endif %}
{% if enable_ceilometer_prometheus_pushgateway | bool %}
- prometheus://{{ ceilometer_prometheus_pushgateway_host }}:{{ ceilometer_prometheus_pushgateway_port }}/metrics/job/openstack-telemetry
{% endif %}