Is there a way to visualize current CPU usage of a pod in a K8S cluster?
I tried different Prometheus metrics like namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate
and other similar ones, but I always get average value for the last 5 minutes, so I have "stairs" on my graphs even if workload raises abruptly (please, see the screenshot).
At the same time, kubectl top pod
shows more precise values, so when I raise workload to 100%, it starts showing 100% utilization in a few seconds.
Is there a way to provide these values to Grafana?
Thanks!