prometheus-community / ecs_exporter

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

Added new metric ecs_cpu_percent #29

Closed vijayansarathy closed 2 years ago

vijayansarathy commented 2 years ago

Added a new metric to compute CPU utilization as a percentage. This is done along the same logic as in here

roidelapluie commented 2 years ago

Thanks for your pull request. In general, exporters should avoid doing calculations like this. Instead, they should provide necessary metrics so that this can be computed in PromQL.

SuperQ commented 2 years ago

Yes, this is not how things are handled in Prometheus exporters.