Closed hossein-rasi closed 3 years ago
In prometheus, I can see in target section that the ecs container is there but the state is DOWN.
Is the port 9545
reachable from the Prometheus instance? You can use nc
to verify this.
So now my questions are:
- Is the metric endpoint path for ecs-container-exporter only /metrics or do I need to use customer path for that?
Its the standard path, so no changes are required
- Do I need to add the DockerLables ("PROMETHEUS_EXPORTER_PORT": "9545") also to the fargate containers that I want to see docker stats metric or it only needs to be added into ecs-exporter container?
No, only the exporter needs the label. This is how the prometheus-ecs-discovery
SD works.
Hello. I am trying to get docker stats metrics from fargate containers using this ecs-container-exporter. What I am doing is to add ecs-container-exporter container in the same task-definition that the fargate container is running. I am also using the ecs-container-discovery to find the containers. In prometheus, I can see in target section that the ecs container is there but the state is DOWN. So now my questions are:
In my scenario also the ecs-exporter is running as fargate. My task-definition json file is:
Thanks