Skip to content

Latest commit

 

History

History
197 lines (133 loc) · 8.13 KB

metrics.md

File metadata and controls

197 lines (133 loc) · 8.13 KB

KubeVirt metrics

This document aims to help users that are not familiar with all metrics exposed by different KubeVirt components. All metrics documented here are auto-generated by the utility tool tools/doc-generator and reflects exactly what is being exposed.

KubeVirt Metrics List

kubevirt_info

Version information.

kubevirt_configuration_emulation_enabled

Indicates whether the Software Emulation is enabled in the configuration. Type: Gauge.

kubevirt_migrate_vmi_data_processed_bytes

The total Guest OS data processed and migrated to the new VM. Type: Gauge.

kubevirt_migrate_vmi_data_remaining_bytes

The remaining guest OS data to be migrated to the new VM. Type: Gauge.

kubevirt_migrate_vmi_dirty_memory_rate_bytes

The rate of memory being dirty in the Guest OS. Type: Gauge.

kubevirt_migrate_vmi_disk_transfer_rate_bytes

The rate at which the disk is being transferred. Type: Gauge.

kubevirt_migrate_vmi_failed

Number of failed migrations. Type: Gauge.

kubevirt_migrate_vmi_memory_transfer_rate_bytes

The rate at which the memory is being transferred. Type: Gauge.

kubevirt_migrate_vmi_pending_count

Number of current pending migrations. Type: Gauge.

kubevirt_migrate_vmi_running_count

Number of current running migrations. Type: Gauge.

kubevirt_migrate_vmi_scheduling_count

Number of current scheduling migrations. Type: Gauge.

kubevirt_migrate_vmi_succeeded

Number of migrations successfully executed. Type: Gauge.

kubevirt_virt_controller_leading

Indication for an operating virt-controller. Type: Gauge.

kubevirt_virt_controller_ready

Indication for a virt-controller that is ready to take the lead. Type: Gauge.

kubevirt_vm_error_status_last_transition_timestamp_seconds

Virtual Machine last transition timestamp to error status. Type: Counter.

kubevirt_vm_migrating_status_last_transition_timestamp_seconds

Virtual Machine last transition timestamp to migrating status. Type: Counter.

kubevirt_vm_non_running_status_last_transition_timestamp_seconds

Virtual Machine last transition timestamp to paused/stopped status. Type: Counter.

kubevirt_vm_running_status_last_transition_timestamp_seconds

Virtual Machine last transition timestamp to running status. Type: Counter.

kubevirt_vm_starting_status_last_transition_timestamp_seconds

Virtual Machine last transition timestamp to starting status. Type: Counter.

kubevirt_vmi_cpu_affinity

Details the cpu pinning map via boolean labels in the form of vcpu_X_cpu_Y. Type: Counter.

kubevirt_vmi_cpu_system_usage_seconds

Total CPU time spent in system mode. Type: Gauge.

kubevirt_vmi_cpu_usage_seconds

Total CPU time spent in all modes (sum of both vcpu and hypervisor usage). Type: Gauge.

kubevirt_vmi_cpu_user_usage_seconds

Total CPU time spent in user mode. Type: Gauge.

kubevirt_vmi_filesystem_capacity_bytes_total

Total VM filesystem capacity in bytes. Type: Gauge.

kubevirt_vmi_filesystem_used_bytes

Used VM filesystem capacity in bytes. Type: Gauge.

kubevirt_vmi_memory_actual_balloon_bytes

Current balloon size in bytes. Type: Gauge.

kubevirt_vmi_memory_available_bytes

Amount of usable memory as seen by the domain. This value may not be accurate if a balloon driver is in use or if the guest OS does not initialize all assigned pages Type: Gauge.

kubevirt_vmi_memory_domain_bytes_total

The amount of memory in bytes allocated to the domain. The memory value in domain xml file. Type: Gauge.

kubevirt_vmi_memory_pgmajfault

The number of page faults when disk IO was required. Page faults occur when a process makes a valid access to virtual memory that is not available. When servicing the page fault, if disk IO is required, it is considered as major fault. Type: Counter.

kubevirt_vmi_memory_pgminfault

The number of other page faults, when disk IO was not required. Page faults occur when a process makes a valid access to virtual memory that is not available. When servicing the page fault, if disk IO is NOT required, it is considered as minor fault. Type: Counter.

kubevirt_vmi_memory_resident_bytes

Resident set size of the process running the domain. Type: Gauge.

kubevirt_vmi_memory_swap_in_traffic_bytes_total

The total amount of data read from swap space of the guest in bytes. Type: Gauge.

kubevirt_vmi_memory_swap_out_traffic_bytes_total

The total amount of memory written out to swap space of the guest in bytes. Type: Gauge.

kubevirt_vmi_memory_unused_bytes

The amount of memory left completely unused by the system. Memory that is available but used for reclaimable caches should NOT be reported as free. Type: Gauge.

kubevirt_vmi_memory_usable_bytes

The amount of memory which can be reclaimed by balloon without pushing the guest system to swap, corresponds to 'Available' in /proc/meminfo Type: Gauge.

kubevirt_vmi_memory_used_bytes

Amount of used memory as seen by the domain. Type: Gauge.

kubevirt_vmi_network_receive_bytes_total

Total network traffic received in bytes. Type: Counter.

kubevirt_vmi_network_receive_errors_total

Total network received error packets. Type: Counter.

kubevirt_vmi_network_receive_packets_dropped_total

The total number of rx packets dropped on vNIC interfaces. Type: Counter.

kubevirt_vmi_network_receive_packets_total

Total network traffic received packets. Type: Counter.

kubevirt_vmi_network_traffic_bytes_total

Deprecated. Type: Counter.

kubevirt_vmi_network_transmit_bytes_total

Total network traffic transmitted in bytes. Type: Counter.

kubevirt_vmi_network_transmit_errors_total

Total network transmitted error packets. Type: Counter.

kubevirt_vmi_network_transmit_packets_dropped_total

The total number of tx packets dropped on vNIC interfaces. Type: Counter.

kubevirt_vmi_network_transmit_packets_total

Total network traffic transmitted packets. Type: Counter.

kubevirt_vmi_non_evictable

Indication for a VirtualMachine that its eviction strategy is set to Live Migration but is not migratable. Type: Gauge.

kubevirt_vmi_outdated_count

Indication for the total number of VirtualMachineInstance workloads that are not running within the most up-to-date version of the virt-launcher environment. Type: Gauge.

kubevirt_vmi_phase_count

Sum of VMIs per phase and node.

phase can be one of the following: [Pending, Scheduling, Scheduled, Running, Succeeded, Failed, Unknown]. Type: Gauge.

kubevirt_vmi_storage_flush_requests_total

Total storage flush requests. Type: Counter.

kubevirt_vmi_storage_flush_times_ms_total

Total time (ms) spent on cache flushing. Type: Counter.

kubevirt_vmi_storage_iops_read_total

Total number of I/O read operations. Type: Counter.

kubevirt_vmi_storage_iops_write_total

Total number of I/O write operations. Type: Counter.

kubevirt_vmi_storage_read_times_ms_total

Total time (ms) spent on read operations. Type: Counter.

kubevirt_vmi_storage_read_traffic_bytes_total

Total number of bytes read from storage. Type: Counter.

kubevirt_vmi_storage_write_times_ms_total

Total time (ms) spent on write operations. Type: Counter.

kubevirt_vmi_storage_write_traffic_bytes_total

Total number of written bytes. Type: Counter.

kubevirt_vmi_vcpu_seconds

Total amount of time spent in each state by each vcpu (cpu_time excluding hypervisor time). Where id is the vcpu identifier and state can be one of the following: [OFFLINE, RUNNING, BLOCKED]. Type: Counter.

kubevirt_vmi_vcpu_wait_seconds

Amount of time spent by each vcpu while waiting on I/O. Type: Counter.

kubevirt_vmsnapshot_disks_restored_from_source_bytes

Returns the amount of space in bytes restored from the source virtual machine. Type: Gauge.

kubevirt_vmsnapshot_disks_restored_from_source_total

Returns the total number of virtual machine disks restored from the source virtual machine. Type: Gauge.

Developing new metrics

After developing new metrics or changing old ones, please run make generate to regenerate this document.

If you feel that the new metric doesn't follow these rules, please change doc-generator with your needs.