Skip to content
Snippets Groups Projects
Commit 2a64eaea authored by Jan David Mol's avatar Jan David Mol
Browse files

fix

parent 7dc1191d
No related branches found
No related tags found
1 merge request!23Draft: Add central White Rabbit monitoring
Pipeline #120729 passed
......@@ -2,7 +2,7 @@ registry:
astron:
url: git.astron.nl:5000
stations:
white_rabbit_stations:
- cs001
- cs032
- rs307
......
......@@ -138,8 +138,8 @@ job "metrics" {
module: [if_mib,wrSwitchMIB]
static_configs:
- targets:
[[ range $station := $.stations ]]
- [[ $station ]]-whiterabbit.lofar.eu
[[ range $station := $.white_rabbit_stations ]]
- [[ $station ]]
[[ end ]]
metric_relabel_configs:
- source_labels: [prefix, __name__]
......@@ -148,10 +148,13 @@ job "metrics" {
- action: labeldrop
regex: prefix
relabel_configs:
- target_label: instance
replacement: "white-rabbit-snmp"
- source_labels: [__address__]
target_label: host
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
replacement: "${1}-whiterabbit.lofar.eu"
- target_label: __address__
replacement: "snmp-exporter.service.consul:9116"
EOH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment