units for kube_metrics_server_pods_cpu metric in prometheus

Viewed 222

Can anyone guide if we monitoring out EKS cluster using prometheus

Then what would be the units for the metric kube_metrics_server_pods_cpu by default.

1 Answers

CPU is measured in nanocores.

kube_metrics_server_pods_cpu is measured in nanocores.

I agree with @noam-yizraeli

As per the source code of the metrics-server-exporter, there is pod_container_cpu variable.

metrics_pods_cpu.add_sample('kube_metrics_server_pods_cpu', value=int(pod_container_cpu), labels={ 'pod_name': pod_name, 'pod_namespace': pod_namespace, 'pod_container_name': pod_container_name })

pod_container_cpu is declared here

And README.md says:

kube_metrics_server_nodes_cpu

  • Provides nodes CPU information in nanocores.

Memory is measured in kibibites.

As for the memory usage, the same README.md says:

kube_metrics_server_nodes_mem

  • Provides nodes memory information in kibibytes.
Related