monitoring: add 'location' info

This commit is contained in:
Gregor Michels 2022-11-19 01:46:52 +01:00
parent 8389a18488
commit ffb7617db8
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ scrape_configs:
{% if hostvars[host]['site'] is defined %}
site: "{{ hostvars[host]['site'] }}"
{% endif %}
{% if hostvars[host]['location'] is defined %}
location: "{{ hostvars[host]['location'] }}"
{% endif %}
{% endfor %}
{% endfor %}