Merge "Add Alertmanger metric target(s)"

This commit is contained in:
Zuul
2021-09-20 18:08:56 +00:00
committed by Gerrit Code Review
2 changed files with 11 additions and 0 deletions

View File

@@ -146,6 +146,13 @@ scrape_configs:
{% endif %}
{% if enable_prometheus_alertmanager | bool %}
- job_name: alertmanager
static_configs:
- targets:
{% for host in groups['prometheus-alertmanager'] %}
- '{{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ hostvars[host]['prometheus_alertmanager_port'] }}'
{% endfor %}
alerting:
alertmanagers:
- static_configs:

View File

@@ -0,0 +1,4 @@
---
features:
- |
Add support for Alertmanager metrics scraping in Prometheus.