aws-samples / aws-samples/prometheus-for-ecs

Services are discovered but no endpoint is scraped

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
61
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Hey,
First, this project is a huge help for my setup!
I have an issue where I can see in the logs that services are discovered and so are their instances, but nothing is scraped.
I see only logs from the config-reloader container and zero logs from the collector container.

I ssh-ed into the config-reloader container, and executed `curl localhost:9001/prometheus-targets` and noticed that an empty array was returned, so I guess that's the reason that none of my endpoints are being scraped.
How can that be?

Any help would be much appreciated :)

I've attached my task definition (I'm using the new AWS otel image), and my adot config:
[dev-adot-collector-revision2.txt](https://github.com/aws-samples/prometheus-for-ecs/files/10913341/dev-adot-collector-revision2.txt)
[config.txt](https://github.com/aws-samples/prometheus-for-ecs/files/10913358/config.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.