Sorting metrics by service?

11/5/2019

I need to setup monitoring for a large app that lives on an equally large K8S cluster. Because of how this app and the corresponding infrastructure were set up, i need to be able to monitor pods according to services (in the K8S).

I would normally do something like :

sum (rate (container_network_transmit_bytes_total[1m])) by (service)

But that doesn't return anything. Would anybody have a better method ?

-- Gé Fa
grafana
kubernetes
monitoring
prometheus
promql

0 Answers