So both URLs work if you make the requests from the server? 

On 20 April 2021 17:30:05 BST, "barnyb...@gmail.com" <barnybarn...@gmail.com> 
wrote:
>Firewalls are disabled, along the path / metrics are present. I think
>that 
>exporter should work, because i'm using the same image for both.
>
>
>On Tuesday, April 20, 2021 at 7:17:08 PM UTC+3 Stuart Clark wrote:
>
>> On 20/04/2021 16:45, barnyb...@gmail.com wrote:
>> > 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
>>
>> If you try calling the two exporters directly (with the ?target=IP 
>> parameter) do they both work? Does one take longer than the other?
>Could 
>> you have a firewall in the way from one of the two servers?
>>
>> -- 
>> Stuart Clark
>>
>>
>
>-- 
>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 prometheus-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/prometheus-users/ac7e5fa6-c2df-45d0-ad04-45dd603c430an%40googlegroups.com.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/F5BD89D6-8B30-43E4-AAF1-098FAAA6E682%40Jahingo.com.

Reply via email to