MKE cAdvsior metrics
Once you have enabled cAdvisor and generated an auth token, you can issue the
following command to access the cAdvisor metrics:
curl -sk -H
"Authorization: Bearer $AUTHTOKEN"
"$<mke_url>/metricsservice/query?query=$<mke_specific_metric>\[$<time_duration>\]"
The Prometheus container metrics exposed by cAdvisor are presented below:
cadvisor_version_info
| Units |
Description |
Labels |
| N/A |
A metric with a constant 1 value that is labeled by kernel version, OS version, Docker version, cAdvisor version and cAdvisor revision. |
cadvisorRevision, cadvisorVersion, instance, job, kernelVersion, osVersion |
container_blkio_device_usage_total
| Units |
Description |
Labels |
| bytes |
The Block I/O (blkio) device bytes usage. |
container, device, id, image, instance, job, major, minor, name, namespace, operation, pod |
container_cpu_system_seconds_total
| Value |
Description |
Labels |
| seconds |
Cumulative system CPU time consumed. |
container, id, image, instance, job, name, namespace, pod |
container_cpu_usage_seconds_total
| Value |
Description |
Labels |
| seconds |
Cumulative CPU time consumed. |
container, id, image, instance, job, name, namespace, pod |
container_cpu_user_seconds_total
| Value |
Description |
Labels |
| seconds |
Cumulative user CPU time consumed. |
container, id, image, instance, job, name, namespace, pod |
container_fs_reads_bytes_total
| Units |
Description |
Labels |
| bytes |
Cumulative count of bytes read. |
container, device, id, image, instance, job, name, namespace, pod |
container_fs_reads_total
| Value |
Description |
Labels |
| integer |
Cumulative count of reads completed. |
container, device, id, image, instance, job, name, namespace, pod |
container_fs_writes_bytes_total
| Units |
Description |
Labels |
| bytes |
Cumulative count of bytes written. |
container, device, id, image, instance, job, name, namespace, pod |
container_fs_writes_total
| Value |
Description |
Labels |
| integer |
Cumulative count of writes completed. |
container, device, id, image, instance, job, name, namespace, pod |
container_last_seen
| Units |
Description |
Labels |
| timestamp |
Last time a container was seen by the exporter. |
container, id, image, instance, job, name, namespace, pod |
container_memory_cache
| Units |
Description |
Labels |
| bytes |
Total page cache memory. |
container, id, image, instance, job, name, namespace, pod |
container_memory_failcnt
| Value |
Description |
Labels |
| integer |
Number of memory usage hits limits. |
container, id, image, instance, job, name, namespace, pod |
container_memory_failures_total
| Value |
Description |
Labels |
| integer |
Cumulative count of memory allocation failures. |
container, id, image, instance, job, name, namespace, pod |
container_memory_mapped_file
| Units |
Description |
Labels |
| bytes |
Size of memory mapped files. |
container, id, image, instance, job, name, namespace, pod |
container_memory_max_usage_bytes
| Units |
Description |
Labels |
| bytes |
Maximum memory usage recorded. |
container, id, image, instance, job, name, namespace, pod |
| Units |
Description |
Labels |
| bytes |
Size of RSS. |
container, id, image, instance, job, name, namespace, pod |
container_memory_swap
| Units |
Description |
Labels |
| bytes |
Container swap usage. |
container, id, image, instance, job, name, namespace, pod |
container_memory_usage_bytes
| Units |
Description |
Labels |
| bytes |
Current memory usage, including all memory regardless of when it was accessed. |
container, id, image, instance, job, name, namespace, pod |
container_memory_working_set_bytes
| Units |
Description |
Labels |
| bytes |
Current working set. |
container, id, image, instance, job, name, namespace, pod |
container_network_receive_bytes_total
| Units |
Description |
Labels |
| bytes |
Cumulative count of bytes received. |
container, id, image, instance, job, name, namespace, pod |
container_network_receive_errors_total
| Value |
Description |
Labels |
| integer |
Cumulative count of errors encountered while receiving. |
container, id, image, instance, job, name, namespace, pod |
container_network_receive_packets_dropped_total
| Value |
Description |
Labels |
| integer |
Cumulative count of packets dropped while receiving. |
container, id, image, instance, job, name, namespace, pod |
container_network_receive_packets_total
| Value |
Description |
Labels |
| integer |
Cumulative count of packets received. |
container, id, image, instance, job, name, namespace, pod |
container_network_transmit_bytes_total
| Value |
Description |
Labels |
| integer |
Cumulative count of bytes transmitted. |
container, id, image, instance, job, name, namespace, pod |
container_network_transmit_errors_total
| Value |
Description |
Labels |
| integer |
Cumulative count of errors encountered while transmitting. |
container, id, image, instance, job, name, namespace, pod |
container_network_transmit_packets_dropped_total
| Value |
Description |
Labels |
| integer |
Cumulative count of packets dropped while transmitting. |
container, id, image, instance, job, name, namespace, pod |
container_network_transmit_packets_total
| Value |
Description |
Labels |
| integer |
Cumulative count of packets transmitted. |
container, id, image, instance, job, name, namespace, pod |
container_scrape_error
| Units |
Description |
Labels |
| N/A |
1 if an error occurred while container metrics were being obtained, otherwise 0. |
instance, job |
container_spec_cpu_period
| Units |
Description |
Labels |
| N/A |
CPU period of the container. |
container, id, image, instance, job, name, namespace, pod |
container_spec_cpu_shares
| Units |
Description |
Labels |
| N/A |
CPU share of the container. |
container, id, image, instance, job, name, namespace, pod |
container_spec_memory_limit_bytes
| Units |
Description |
Labels |
| bytes |
Memory limit for the container. |
container, id, image, instance, job, name, namespace, pod |
container_spec_memory_reservation_limit_bytes
| Units |
Description |
Labels |
| bytes |
Memory reservation limit for the container. |
container, id, image, instance, job, name, namespace, pod |
container_spec_memory_swap_limit_bytes
| Units |
Description |
Labels |
| bytes |
Memory swap limit for the container. |
container, id, image, instance, job, name, namespace, pod |
container_start_time_seconds
| Value |
Description |
Labels |
| seconds |
Start time of the container since unix epoch. |
container, id, image, instance, job, name, namespace, pod |
machine_cpu_cores
| Value |
Description |
Labels |
| integer |
Number of logical CPU cores. |
boot_id, instance, job, machine_id, system_uuid |
machine_cpu_physical_cores
| Value |
Description |
Labels |
| integer |
Number of physical CPU cores. |
boot_id, instance, job, machine_id, system_uuid |
machine_cpu_sockets
| Value |
Description |
Labels |
| integer |
Number of CPU sockets. |
boot_id, instance, job, machine_id, system_uuid |
machine_memory_bytes
| Units |
Description |
Labels |
| bytes |
Amount of memory installed on the machine. |
boot_id, instance, job, machine_id, system_uuid |
machine_nvm_avg_power_budget_watts
| Units |
Description |
Labels |
| watts |
NVM power budget. |
boot_id, instance, job, machine_id, system_uuid |
machine_nvm_capacity
| Units |
Description |
Labels |
| bytes |
NVM capacity value, labeled by NVM mode (memory mode or app direct mode). |
boot_id, instance, job, machine_id, system_uuid |
machine_scrape_error
| Value |
Description |
Labels |
| integer |
1 if an error occurred while machine metrics were being obtained, otherwise 0. |
instance, job |