diff options
Diffstat (limited to 'roles/monitoring/prometheus/server/templates/targets/generic.yml.j2')
-rw-r--r-- | roles/monitoring/prometheus/server/templates/targets/generic.yml.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2 index e83b6bf4..45af10c0 100644 --- a/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2 +++ b/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2 @@ -1,3 +1,3 @@ -- targets: [ "{{ hostvars[target].prometheus_scrape_endpoint }}" ] +- targets: [ "{{ hostvars[target.instance].prometheus_scrape_endpoint }}" ] labels: - instance: "{{ target }}" + instance: "{{ target.instance }}" |