summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/register/templates/modbus
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-06-30 17:31:07 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-06-30 17:31:07 +0200
commit450524297b1d07b6a1e890b973888460a89659f9 (patch)
treec8f9b2d53c15de6304aa1e9f270c4a7642f69b7a /roles/monitoring/prometheus/exporter/register/templates/modbus
parentupgrade all nextcloud instances (diff)
finalize transition to new promethues multitarget labeling
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates/modbus')
-rw-r--r--roles/monitoring/prometheus/exporter/register/templates/modbus/probe.yml.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/register/templates/modbus/probe.yml.j2 b/roles/monitoring/prometheus/exporter/register/templates/modbus/probe.yml.j2
index 5d51398a..d450f535 100644
--- a/roles/monitoring/prometheus/exporter/register/templates/modbus/probe.yml.j2
+++ b/roles/monitoring/prometheus/exporter/register/templates/modbus/probe.yml.j2
@@ -1,6 +1,7 @@
- targets: [ '{{ (target.exporter_hostname == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.exporter_hostname].prometheus_scrape_endpoint) }}' ]
labels:
instance: '{{ target.instance }}'
+ modbus_instance: '{{ target.config.modbus_instance }}'
__param_target: '{{ target.config.target }}'
__param_sub_target: '{{ target.config.sub_target }}'
__param_module: '{{ target.config.module }}'