summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-08-07 17:35:38 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-08-07 17:35:38 +0200
commitdd1143e03a3c84a89956df3ccaec64ea77f3ca95 (patch)
treea03a33a1d90feeb28fdb64595b30d74707cfa692 /inventory
parentonly create grafana-dashboard sub-dirs once... (diff)
prometheus: make instance name for scraping alertmanager metrics configurable
Diffstat (limited to 'inventory')
-rw-r--r--inventory/host_vars/ch-mon.yml1
-rw-r--r--inventory/host_vars/ele-calypso.yml1
2 files changed, 2 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-mon.yml b/inventory/host_vars/ch-mon.yml
index acb2d15f..b93dbd05 100644
--- a/inventory/host_vars/ch-mon.yml
+++ b/inventory/host_vars/ch-mon.yml
@@ -141,6 +141,7 @@ prometheus_server_alertmanager:
basic_auth:
username: server
password: "{{ vault_prometheus_alertmanager_auth_user_passwords['server'] }}"
+ scrape_instance: "{{ inventory_hostname }}"
prometheus_server_web_external_url: "http://mon.chaos-at-home.org/prometheus/"
diff --git a/inventory/host_vars/ele-calypso.yml b/inventory/host_vars/ele-calypso.yml
index 51c324ab..90e92097 100644
--- a/inventory/host_vars/ele-calypso.yml
+++ b/inventory/host_vars/ele-calypso.yml
@@ -101,6 +101,7 @@ prometheus_server_storage:
prometheus_server_alertmanager:
url: "127.0.0.1:9093"
path_prefix: "/alertmanager/"
+ scrape_instance: "{{ inventory_hostname }}"
prometheus_server_web_external_url: "http://{{ network.primary.address | ansible.utils.ipaddr('address') }}/prometheus/"