{"repo":"Spaced-Out/ecs-container-exporter","free":true,"listed":false,"github":"https://github.com/Spaced-Out/ecs-container-exporter","clone":"git clone https://github.com/Spaced-Out/ecs-container-exporter.git","description":"AWS ECS side car that exports ECS container level docker stats metrics to Prometheus as well as publish it via Statsd.","language":"Python","stars":28,"topics":["metrics","aws-ecs","statsd","docker-stats","fargate","prometheus"],"license":"MIT","category":"analytics","readme_excerpt":"ecs-container-exporter AWS ECS side car that exports ECS container level docker stats metrics to Prometheus as well as publish it via Statsd. Motivation The default metrics available in AWS ECS are limited, mostly at the task level, across all containers in a task; the container level metrics are not available. In addition, more detailed cgroup metrics are also not available, such as per cpu, and memory usage breakdown into cache, rss, etc. Luckily AWS exposes the docker stats data via a Task metadata endpoint. The ecs-container-exporter parses this data, and can expose it to Prometheus or push them via StatsD. Usage Install via Pip: or via docker: On ECS, add the following json to the task definition: The PROMETHEUS EXPORTER PORT label is for ECS discovery via https://github.com/teralytics/prometheus-ecs-discovery To include or exclude application containers use the INCLUDE or EXCLUDE environment variable. By default ecs-container-exporter and internal ecs pause (a Fargate internal sidecar) is excluded. Statsd Version 2.0.0 add Statsd support with --use-statsd flag or env USE STATSD . Metrics are emitted with DogStatsd Tag format. Metrics The metrics are sampled twice as per the configured interval (default 60s), and than aggregated in this interval. This should be set to the Prometheus scrape interval. CPU CPU usage ratio is calculated and scaled as per the applicable container or task cpu limit: Task Limit Container Limit Task Metric Container Metric --- --- --- --- 0 0 no","default_branch":null,"files":null,"tree":[],"storefront":"/r/Spaced-Out","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Spaced-Out/ecs-container-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}