diff --git a/roles/prometheus/templates/prometheus.yml.j2 b/roles/prometheus/templates/prometheus.yml.j2 index f90930f..0dc3464 100644 --- a/roles/prometheus/templates/prometheus.yml.j2 +++ b/roles/prometheus/templates/prometheus.yml.j2 @@ -20,11 +20,19 @@ scrape_configs: {% for host in groups['tags_nagios'] %} {% for service in vars.services %} {% for tag in service.tags %} +{# #} {% if tag.slug == "nagios-checkhttps" %} {% for port in service.ports %} - "https://{{ service.name }}:{{ port }}" {% endfor %} {% endif %} +{# #} +{% if tag.slug == "nagios-checkmatrix" %} +{% for port in service.ports %} + - "https://{{ service.name }}:{{ port }}/health" +{% endfor %} +{% endif %} +{# #} {% endfor %} {% endfor %} {% endfor %}