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__
        replacement: 10.10.1.5/6:9116

-- 
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/daa44902-6eb5-4d74-b634-9ed4e5f782c0n%40googlegroups.com.

Reply via email to