Open jseiser opened 3 days ago
Following up on the above.
I was able to get debug logs but in order to do so I had to get to shell of the container as root so that I could edit appsettings.json
. The environment variables are not making into that file.
I changed "EcsClusters": "",
to "EcsClusters": "ecs-dev",
and changed the log levels to Debug. Then I restarted ./CloudMapEcsPrometheusDiscovery
.
When I curl /prometheus-targets
, I can see in the debug logs that it is discovering the ECS tasks as expected.
But the response is empty.
Is there additional configuration to be done?
In the logs it will list the full descriptions of everything it finds and then say:
2024-10-17 20:36:31.050 +00:00 [DBG] CloudMap namespaces fetched and cached
2024-10-17 20:36:31.054 +00:00 [INF] Setting HTTP status code 200.
2024-10-17 20:36:31.057 +00:00 [INF] Writing value of type 'PrometheusResponse' as Json.
2024-10-17 20:36:31.058 +00:00 [INF] Executed endpoint 'HTTP: GET /prometheus-targets'
The response from curl
is []
.
We are wanting to use this software to extend our monitoring to our ECS services, but havent been able to get it to work. We would love a way to enable the debug logging, so we can try to see whats going on.
A few notes, Im running it locally, so it does not have any network access to these actual services, I assume thats fine. We do use govcloud, which maybe is an issue?
So its def. doing something, but the cluster listed has like 20+ services in it, so I would hope to see something.
Thanks.