I have configured snmp exporter in prometheus. In prometheus targets page,
when the target url for one of my snmp metrics pages is clicked, it loads
the url for each target with an extra %3A9116 at the end:
http://10.230.x.x:9116/snmp?module=if_mib&target=10.146.
<http://10.230.2.10:9116/snmp?module=if_mib&target=10.146.0.131>x.x%3A9116.
Not sure how to get rid of it so it loads the proper metrics page. Is there
an issue with my relabel configs in prometheus.yml:
- job_name: 'snmp_exporter'
scrape_interval: 30s
file_sd_configs:
- files:
- 'snmp_targets.json'
metrics_path: /snmp
params:
module: [if_mib]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 10.230.x.x:9116 # The SNMP exporter's real
hostname:port.
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/a66dd986-996a-4b44-87f8-6e36cff95d5f%40googlegroups.com.