In correlation with the end of life (EOL) for MKE 3.6.x, maintenance of this documentation set was discontinued as of 2024-OCT-13. Click here for the latest MKE 3.x version documentation.

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

N/A

Description

A metric with a constant 1 value that is labeled by kernel version, OS version, Docker version, cAdvisor version and cAdvisor revision.

Labels

cadvisorRevision, cadvisorVersion, instance, job, kernelVersion, osVersion

container_blkio_device_usage_total

Units

bytes

Description

The Block I/O (blkio) device bytes usage.

Labels

container, device, id, image, instance, job, major, minor, name, namespace, operation, pod

container_cpu_system_seconds_total

Value

seconds

Description

Cumulative system CPU time consumed.

Labels

container, id, image, instance, job, name, namespace, pod

container_cpu_usage_seconds_total

Value

seconds

Description

Cumulative CPU time consumed.

Labels

container, id, image, instance, job, name, namespace, pod

container_cpu_user_seconds_total

Value

seconds

Description

Cumulative user CPU time consumed.

Labels

container, id, image, instance, job, name, namespace, pod

container_fs_reads_bytes_total

Units

bytes

Description

Cumulative count of bytes read.

Labels

container, device, id, image, instance, job, name, namespace, pod

container_fs_reads_total

Value

integer

Description

Cumulative count of reads completed.

Labels

container, device, id, image, instance, job, name, namespace, pod

container_fs_writes_bytes_total

Units

bytes

Description

Cumulative count of bytes written.

Labels

container, device, id, image, instance, job, name, namespace, pod

container_fs_writes_total

Value

integer

Description

Cumulative count of writes completed.

Labels

container, device, id, image, instance, job, name, namespace, pod

container_last_seen

Units

timestamp

Description

Last time a container was seen by the exporter.

Labels

container, id, image, instance, job, name, namespace, pod

container_memory_cache

Units

bytes

Description

Total page cache memory.

Labels

container, id, image, instance, job, name, namespace, pod

container_memory_failcnt

Value

integer

Description

Number of memory usage hits limits.

Labels

container, id, image, instance, job, name, namespace, pod

container_memory_failures_total

Value

integer

Description

Cumulative count of memory allocation failures.

Labels

container, id, image, instance, job, name, namespace, pod

container_memory_mapped_file

Units

bytes

Description

Size of memory mapped files.

Labels

container, id, image, instance, job, name, namespace, pod

container_memory_max_usage_bytes

Units

bytes

Description

Maximum memory usage recorded.

Labels

container, id, image, instance, job, name, namespace, pod

container_memory_rss

Units

bytes

Description

Size of RSS.

Labels

container, id, image, instance, job, name, namespace, pod

container_memory_swap

Units

bytes

Description

Container swap usage.

Labels

container, id, image, instance, job, name, namespace, pod

container_memory_usage_bytes

Units

bytes

Description

Current memory usage, including all memory regardless of when it was accessed.

Labels

container, id, image, instance, job, name, namespace, pod

container_memory_working_set_bytes

Units

bytes

Description

Current working set.

Labels

container, id, image, instance, job, name, namespace, pod

container_network_receive_bytes_total

Units

bytes

Description

Cumulative count of bytes received.

Labels

container, id, image, instance, job, name, namespace, pod

container_network_receive_errors_total

Value

integer

Description

Cumulative count of errors encountered while receiving.

Labels

container, id, image, instance, job, name, namespace, pod

container_network_receive_packets_dropped_total

Value

integer

Description

Cumulative count of packets dropped while receiving.

Labels

container, id, image, instance, job, name, namespace, pod

container_network_receive_packets_total

Value

integer

Description

Cumulative count of packets received.

Labels

container, id, image, instance, job, name, namespace, pod

container_network_transmit_bytes_total

Value

integer

Description

Cumulative count of bytes transmitted.

Labels

container, id, image, instance, job, name, namespace, pod

container_network_transmit_errors_total

Value

integer

Description

Cumulative count of errors encountered while transmitting.

Labels

container, id, image, instance, job, name, namespace, pod

container_network_transmit_packets_dropped_total

Value

integer

Description

Cumulative count of packets dropped while transmitting.

Labels

container, id, image, instance, job, name, namespace, pod

container_network_transmit_packets_total

Value

integer

Description

Cumulative count of packets transmitted.

Labels

container, id, image, instance, job, name, namespace, pod

container_scrape_error

Units

N/A

Description

1 if an error occurred while container metrics were being obtained, otherwise 0.

Labels

instance, job

container_spec_cpu_period

Units

N/A

Description

CPU period of the container.

Labels

container, id, image, instance, job, name, namespace, pod

container_spec_cpu_shares

Units

N/A

Description

CPU share of the container.

Labels

container, id, image, instance, job, name, namespace, pod

container_spec_memory_limit_bytes

Units

bytes

Description

Memory limit for the container.

Labels

container, id, image, instance, job, name, namespace, pod

container_spec_memory_reservation_limit_bytes

Units

bytes

Description

Memory reservation limit for the container.

Labels

container, id, image, instance, job, name, namespace, pod

container_spec_memory_swap_limit_bytes

Units

bytes

Description

Memory swap limit for the container.

Labels

container, id, image, instance, job, name, namespace, pod

container_start_time_seconds

Value

seconds

Description

Start time of the container since unix epoch.

Labels

container, id, image, instance, job, name, namespace, pod

machine_cpu_cores

Value

integer

Description

Number of logical CPU cores.

Labels

boot_id, instance, job, machine_id, system_uuid

machine_cpu_physical_cores

Value

integer

Description

Number of physical CPU cores.

Labels

boot_id, instance, job, machine_id, system_uuid

machine_cpu_sockets

Value

integer

Description

Number of CPU sockets.

Labels

boot_id, instance, job, machine_id, system_uuid

machine_memory_bytes

Units

bytes

Description

Amount of memory installed on the machine.

Labels

boot_id, instance, job, machine_id, system_uuid

machine_nvm_avg_power_budget_watts

Units

watts

Description

NVM power budget.

Labels

boot_id, instance, job, machine_id, system_uuid

machine_nvm_capacity

Units

bytes

Description

NVM capacity value, labeled by NVM mode (memory mode or app direct mode).

Labels

boot_id, instance, job, machine_id, system_uuid

machine_scrape_error

Value

integer

Description

1 if an error occurred while machine metrics were being obtained, otherwise 0.

Labels

instance, job