I'm new with Prometheus and snmp-exporter and I have been doing tests to monitor a UPS, is a docker-compose with prometheus+grafana+node-exporter+snmp-exporter. snmp-exporter works, shown the snmp mib scraper of the device, but in prometheus, in the status/tragets menu shows the following error message Get "http://localhost:9116/snmp?module=MODULE&target=ip": dial tcp [::1]:9116: connect: connection refused
In the error message we can see that the url is swapped
This is the url shown in connection refused error message in prometheus:
-- http://localhost:9116/snmp?module=MODULE&target=IP
And this is the acctual url from snmp-exporter:
-- http://localhost:9116/snmp?target=IP&module=MODULE
I tried several relabeling settings in the prometheus.yml configuration file, but I couldn't solve this problem.
Any idea what the problem is?
Thanks in advance for your suggestions.