2

I am getting an following error:

    Get "https://192.168.188.161:10250/metrics": context deadline exceeded

I am running kube-prometheus v6.5.3 in AWS EKS K8S.

I am using default config. What should be wrong? Or how can I debug it?

https://i.stack.imgur.com/6ZlMq.png

teteyi3241
  • 171
  • 2
  • 12
  • That's a scrape error that indicates that the target isn't responding to the request. This could be because the URL is wrong. – Levi Harrison Dec 27 '21 at 00:02
  • Prometheus uses the `scrape_timeout` defined in configuration (default to 10sec) to define a deadline on target scraping. It seems your target exceeds this timeout, either because it goes through some network blackhole or because the target doesn't answer on time. The best way to debug that is to try to curl the target from your pod. – Michael Doubez Dec 27 '21 at 10:30
  • Does this answer your question? [Context Deadline Exceeded - prometheus](https://stackoverflow.com/questions/49817558/context-deadline-exceeded-prometheus) – Michael Doubez Dec 27 '21 at 10:36
  • Note that this question has already been asked many times on Stackoverflow in many cases. I expect you can find the answer in one of those cases. – Michael Doubez Dec 27 '21 at 10:37

0 Answers0