summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates/targets
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-12-17 18:21:12 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-12-17 18:21:12 +0100
commitb362c4a1b1462b1ccf26750752c2147615508f52 (patch)
treea86c60116991ec5460931c33259b076ef77035ae /roles/monitoring/prometheus/server/templates/targets
parentch-epimetheus: decrease zfs ARC size (diff)
add prometheus snmp exporter
Diffstat (limited to 'roles/monitoring/prometheus/server/templates/targets')
-rw-r--r--roles/monitoring/prometheus/server/templates/targets/snmp/probe.yml.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/server/templates/targets/snmp/probe.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/snmp/probe.yml.j2
new file mode 100644
index 00000000..47e6dceb
--- /dev/null
+++ b/roles/monitoring/prometheus/server/templates/targets/snmp/probe.yml.j2
@@ -0,0 +1,5 @@
+- targets: [ '{{ (target.exporter_hostname == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.exporter_hostname].prometheus_scrape_endpoint) }}' ]
+ labels:
+ instance: '{{ target.instance }}'
+ __param_target: '{{ target.config.target }}'
+ __param_module: '{{ target.config.module }}'