Skip to content

Commit 8986e14

Browse files
authored
Merge pull request #640 from stackhpc/prometheus-hostnames-zed
Use inventory hostnames in prometheus
2 parents fe5d26e + 594d1b0 commit 8986e14

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

etc/kayobe/kolla/globals.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@ prometheus_ceph_mgr_exporter_endpoints:
3838
{% endfor %}
3939
{% endif %}
4040

41+
# Use inventory hostnames as labels
42+
prometheus_instance_label: "{% raw %}{{ ansible_facts.hostname }}{% endraw %}"
43+
4144
#############################################################################
4245

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
upgrade:
3+
- |
4+
Instance labels in prometheus now use inventory hostnames rather than IPs.

0 commit comments

Comments
 (0)