Skip to content
Snippets Groups Projects
Commit 5a6cafa2 authored by Piotr Parczewski's avatar Piotr Parczewski
Browse files

Add Alertmanger metric target(s)

This commit enables scraping of Alertmanager metrics.

Change-Id: I69f4ac7de0f95eff393d9658af396e3c04824c8f
parent 1e984f56
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,13 @@ scrape_configs: ...@@ -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:
......
---
features:
- |
Add support for Alertmanager metrics scraping in Prometheus.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment