You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm adapting an existing dashboard within my company that displays CPU metrics per container. The request is like :
sum by (container) (rate(container_cpu_usage_seconds_total{namespace=~"$namespace", pod=~"$pod"}[5m])).
I would like to do the same to display network usage data. I use the request container_network_transmit_bytes_total , but it seems that in the answer received, there is no container label. I can only access pod label. We have a prometheus server in version 2.33.5. Is it normal that I cannot get these information per container ? We have multiple containers per pod.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello !
I'm adapting an existing dashboard within my company that displays CPU metrics per container. The request is like :
sum by (container) (rate(container_cpu_usage_seconds_total{namespace=~"$namespace", pod=~"$pod"}[5m]))
.I would like to do the same to display network usage data. I use the request
container_network_transmit_bytes_total
, but it seems that in the answer received, there is nocontainer
label. I can only access pod label. We have a prometheus server in version 2.33.5. Is it normal that I cannot get these information per container ? We have multiple containers per pod.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions