Hello gentlemen. Help me figure out the case.
Previously, I used docker snmp-exporter on server 1(10.10.1.5) and docker prometheus on server 2(10.10.1.6). In the replication line in prometheus config of the server 2 , there was the exporter's ip address from server 1(10.10.1.5). Here's how it worked.
Now I decided that everything should be on the same server, so I took already a working image of the snmp-exporter from the server 1 and installed it on the local on server 2 where Prometheus is located, but after changing the "replacement" IP address to local servers 10.10.1.6, I get a context deadline exceeded error. If i will change the replacement ip back to remote 10.10.1.5 everything is ok, why?
- job_name: 'snmp'
static_configs:
- targets:
- 10.10.1.1
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__