prometheus-community / ecs_exporter

Prometheus exporter for Amazon Elastic Container Service (ECS)
Apache License 2.0
77 stars 19 forks source link

Feature: Expose cpu_stats.throttling_data #41

Open jseiser opened 2 years ago

jseiser commented 2 years ago

Information is contained here: curl -o stats.json "${ECS_CONTAINER_METADATA_URI_V4}/task/stats"

        "cpu_stats": {
            "cpu_usage": {
                "total_usage": 1666419070,
                "percpu_usage": [
                    676748195,
                    989670875
                ],
                "usage_in_kernelmode": 170000000,
                "usage_in_usermode": 1010000000
            },
            "system_cpu_usage": 7028500000000,
            "online_cpus": 2,
            "throttling_data": {
                "periods": 0,
                "throttled_periods": 0,
                "throttled_time": 0
            }
        },
kvendingoldo commented 1 year ago

Hi @jseiser, I've started to work on metrics set update in my PR: https://github.com/prometheus-community/ecs_exporter/pull/46. Welcome to participate in that.