summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/register/templates/generic.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates/generic.yml.j2')
-rw-r--r--roles/monitoring/prometheus/exporter/register/templates/generic.yml.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/register/templates/generic.yml.j2 b/roles/monitoring/prometheus/exporter/register/templates/generic.yml.j2
new file mode 100644
index 00000000..341cb45a
--- /dev/null
+++ b/roles/monitoring/prometheus/exporter/register/templates/generic.yml.j2
@@ -0,0 +1,3 @@
+- targets: [ '{{ (target.instance == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.instance].prometheus_scrape_endpoint) }}' ]
+ labels:
+ instance: '{{ target.instance }}'