Spaced-Out / ecs-container-exporter

AWS ECS side car that exports ECS container level docker stats metrics to Prometheus as well as publish it via Statsd.
MIT License
26 stars 3 forks source link

requests take 55s ? #7

Closed ericb-summit closed 2 years ago

ericb-summit commented 2 years ago

Not sure how active this project is, but can anyone thing of a reason why metrics requests take 55 seconds to complete?

Systematically, 55 seconds every time. Which obviously times out on the prometheus side.

curl'ing the metadata endpoint seems to provide a response instantly. The logs show nothing useful.

Thanks

raags commented 2 years ago

It’s because of this https://github.com/Spaced-Out/ecs-container-exporter#metrics

Increase the scrape timeout to 1m

mritalian commented 2 years ago

Yeah that's what I was afraid of. Thanks.

raags commented 2 years ago

Its configurable with --interval

ericb-summit commented 2 years ago

Thanks, will look into it.