I am able to see metrics using curl http:some_ip:9100/,etrics in vm but I am not able to see those in prometheus UI. so shall I try this command curl -h 'http://some_ip:9100/metrics' where prometheus is running and cross check whether it has any network issues or not? On Sunday, 10 April 2022 at 15:38:12 UTC+5:30 Brian Candler wrote:
> > on few servers I am facing the error "Get "http://some_ip:9100/metrics": > context deadline exceeded > > Does this happen consistently, i.e. there are no metrics returned at all > for those servers, or intermittent? > > You can replicate the problem without using Prometheus like this: > > curl -h 'http://some_ip:9100/metrics' > > If it just hangs, then you know the problem is either with the network > (e.g. firewall rules dropping the traffic) or with the host where the > exporter is running (e.g. iptables dropping the traffic) > > On Sunday, 10 April 2022 at 10:48:40 UTC+1 [email protected] wrote: > >> heyy thanks.... i changed the timeout to 2m still I am getting the same >> error... will the timeout depends upon the scrape interval. >> >> global: >> scrape_interval: 2m >> evaluation_interval: 15s >> scrape_timeout: 2m >> >> this is my prometheus.yml >> >> could you please tell me? >> >> thanks & regards >> Bharath Kumar >> >> On Sunday, 10 April 2022 at 08:35:43 UTC+5:30 Evelyn Pereira Souza wrote: >> >>> On 09.04.22 19:16, BHARATH KUMAR wrote: >>> > Hi all, >>> >>> Hi Kumar >>> >>> > >>> > I am installing node exporter on many servers and I a monitoring those >>> > servers using prometheus. Initially i didn't face any kind of errors. >>> > but on few servers I am facing the error "Get >>> > "http://some_ip:9100/metrics": context deadline exceeded ". I tried >>> > changing scrape interval and tried disabling firewall. but nothing >>> > worked. I am not using any docker or kubernetes. can anyone please >>> help >>> > me out of this? >>> >>> Try increase scrape_timeout >>> >>> best regards >>> Evelyn >>> >> -- 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/7bbf3763-b193-44ff-bfd3-5cdbc2076be8n%40googlegroups.com.

