Table for multiple metrics with prometheus

I’m trying to setup a table with grafana (latest docker version) for multi metric support. The metrics are collected from telegraf.

What I hope to achieve is, List top 10 containers in a docker containers ordered by higher cpu, memory, disk usage and network usage

Like, container_name, cpu_percent, memory_usage, disk io, network io as columns of the table.

telegraf pushes metrics like (this can be converted to time-series and filtered; from the below forum link),

docker_container_cpu_usage_percent{container_image=“xxx”,container_name=“xxx”,container_version=“latest”,cpu=“cpu-total”,dc=“xxx”,engine_host=“xxx”,host=“xxx”,instance=“xxx”,job=“xxx”}

Is there any way to achieve this with grafana. Please guide.

Also,

I’ve asked for the prometheus forum for help,

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/prometheus-users/FzxdtulyM6Q

Hi,

Absolutely possible. See How to correlate kube_pod_info and kube_pod_status_phase for example

Marcus

1 Like