ecs-exporter
prometheuscommunity/ecs-exporter
100K+
This repo contains a Prometheus exporter for Amazon Elastic Container Service (ECS) that publishes ECS task infra metrics in the Prometheus exposition formats.
Run the following container as a sidecar on ECS tasks:
quay.io/prometheuscommunity/ecs-exporter:v0.4.0
An example Fargate task definition that includes the container is available.
To add ECS exporter to your existing ECS task:
By default, it publishes Prometheus metrics on ":9779/metrics". The exporter in this repo can be a useful complementary sidecar for the scenario described in this blog post. Adding this sidecar to the ECS task definition would export task-level metrics in addition to the custom metrics described in the blog.
All metrics exported by ecs_exporter are sourced from the ECS task metadata
API
accessible from within every ECS task. AWS can make, and on occasion has
made,
unannounced (or at least unversioned) breaking changes to the data served from
this API, especially the container-level stats served from the /task/stats
endpoint. Metrics emitted by ecs_exporter may spontaneously break as a result,
in which case we may need to make breaking changes to ecs_exporter to keep up.
In light of these conditions, we currently do not have plans to cut a 1.0 release. When necessary, breaking changes will continue to land in minor version releases. The release notes will document any breaking changes as they come.
None. You may
join
to ecs_task_metadata_info to add task-level metadata (such as the task ARN) to
task-level or any other metrics emitted by ecs_exporter.
Check out the metrics snapshots which
contain sample metrics emitted by ecs_exporter in the Prometheus text
format
you should expect to see on /metrics. Note that these snapshots behave as if
--web.disable-exporter-metrics were passed when running ecs_exporter, such
that standard client_golang
metrics are not included.
Content type
Image
Digest
sha256:a0866d3b4…
Size
11.5 MB
Last updated
15 days ago
docker pull prometheuscommunity/ecs-exporter:main