diff --git a/prometheus-operator/snmp-exporter.yml b/prometheus-operator/snmp-exporter.yml index 7f67957..b15e223 100644 --- a/prometheus-operator/snmp-exporter.yml +++ b/prometheus-operator/snmp-exporter.yml @@ -79,6 +79,11 @@ spec: prober: url: snmp-exporter:9116 path: /snmp + metricRelabelings: + - sourceLabels: [__name__] + regex: '(.*)' + replacement: 'snmp_${1}' + targetLabel: __name__ targets: staticConfig: static: @@ -132,6 +137,11 @@ spec: prober: url: snmp-exporter:9116 path: /snmp + metricRelabelings: + - sourceLabels: [__name__] + regex: '(.*)' + replacement: 'snmp_${1}' + targetLabel: __name__ targets: staticConfig: static: @@ -166,6 +176,11 @@ spec: prober: url: snmp-exporter:9116 path: /snmp + metricRelabelings: + - sourceLabels: [__name__] + regex: '(.*)' + replacement: 'snmp_${1}' + targetLabel: __name__ targets: staticConfig: static: