prometheus / snmp_exporter

SNMP Exporter for Prometheus
Apache License 2.0
1.68k stars 624 forks source link

Ignore certs when using hostnames #517

Closed spoer78 closed 4 years ago

spoer78 commented 4 years ago

Hi there,

when we are using the SNMP exporter with the IP addresses of the target, the scraping is done in about 700ms, when we use the FQDN/hostname for the target, its taking about 11s. Is this because he is doing a certificate check when using a hostname and due to a self signed cert on the Dell IDRAC side, it has a 10s timeout? I tried the following in the prometheus config:

  tls_config:
    insecure_skip_verify: false

... but it had no effect.

Is there a way to configure snmp-exporter itself to skip the certificate check (if thats indeed the issue)?

Thanks and best regards, sp

SuperQ commented 4 years ago

SNMP doesn't use TLS. This sounds more like a DNS lookup timeout problem.

brian-brazil commented 4 years ago

Yeah, this sounds like a Prometheus support question so closing. It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.