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.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.