Grafana agent API endpoints not working #3398
-
I'm running a grafana agent inside docker, with the following
Inside my docker compose:
However, when the agent starts I don't get a response from |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I think you forgot config http_listen_port. after start grafana-agent you should run this command: grafana-agent -config.file = agent.yaml -http_listen_port = 12345 |
Beta Was this translation helpful? Give feedback.
-
I ran into the same issue trying to deploy grafana agent on ECS. Version v0.23.0 seems to be the last version where the ready and healthy checkpoints aren't broken.
Documentation says: @ductrieu When v0.32.0 starts it says |
Beta Was this translation helpful? Give feedback.
Sorry for the confusion here. v0.23.0 was the last version where the default listen address was 0.0.0.0:12345, which was changed afterwards to 127.0.0.1:12345 for security reasons.
To expose the API to outside of the container, you need to pass
-server.http.address=0.0.0.0:12345
as an argument. I'm not sure why it worked for Paschalis (it may be his Docker network configuration), but passing that flag should get everything working for you again.