Add Alertmanger metric target(s)
This commit enables scraping of Alertmanager metrics. Change-Id: I69f4ac7de0f95eff393d9658af396e3c04824c8f
This commit is contained in:
parent
1e984f56b6
commit
5a6cafa210
@ -128,6 +128,13 @@ scrape_configs:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if enable_prometheus_alertmanager | bool %}
|
{% 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:
|
alerting:
|
||||||
alertmanagers:
|
alertmanagers:
|
||||||
- static_configs:
|
- static_configs:
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Add support for Alertmanager metrics scraping in Prometheus.
|
Loading…
x
Reference in New Issue
Block a user