Project: lxd (Runtime / Container Runtime)
File: provided_metrics.md

(provided-metrics)= Incus provides a number of instance metrics and internal metrics. See {ref}`metrics` for instructions on how to work with these

The following instance metrics are provided: ```{list-table} :header-rows: 1 - Metric Description - `incuscpueffective_total` Total number of effective CPUs - `incuscpuseconds_total{cpu="<cpu>", mode="<mode>"}` Total number of CPU time used (in seconds) - `incusdiskreadbytestotal{device="<dev>"}` Total number of bytes read - `incusdiskreadscompletedtotal{device="<dev>"}` Total number of completed reads - `incusdiskwrittenbytestotal{device="<dev>"}` Total number of bytes written - `incusdiskwritescompletedtotal{device="<dev>"}` Total number of completed writes - `incusfilesystemavail_bytes{device="<dev>",fstype="<type>"}` Available space (in bytes) - `incusfilesystemfree_bytes{device="<dev>",fstype="<type>"}` Free space (in bytes) - `incusfilesystemsize_bytes{device="<dev>",fstype="<type>"}` Size of the file system (in bytes) - `incusmemoryActiveanonbytes` Amount of anonymous memory on active LRU list - `incusmemoryActive_bytes` Amount of memory on active LRU list - `incusmemoryActivefilebytes` Amount of file-backed memory on active LRU list - `incusmemoryCached_bytes` Amount of cached memory - `incusmemoryDirty_bytes` Amount of memory waiting to be written back to the disk - `incusmemoryHugepagesFree_bytes` Amount of free memory for `hugetlb` - `incusmemoryHugepagesTotal_bytes` Amount of used memory for `hugetlb` - `incusmemoryInactiveanonbytes` Amount of anonymous memory on inactive LRU list - `incusmemoryInactive_bytes` Amount of memory on inactive LRU list - `incusmemoryInactivefilebytes` Amount of file-backed memory on inactive LRU list - `incusmemoryMapped_bytes` Amount of mapped memory - `incusmemoryMemAvailable_bytes` Amount of available memory - `incusmemoryMemFree_bytes` Amount of free memory - `incusmemoryMemTotal_bytes` Amount of used memory - `incusmemoryOOMkillstotal` The number of out-of-memory kills - `incusmemoryRSS_bytes` Amount of anonymous and swap cache memory - `incusmemoryShmem_bytes` Amount of cached file system data that is swap-backed - `incusmemorySwap_bytes` Amount of used swap memory - `incusmemoryUnevictable_bytes` Amount of unevictable memory - `incusmemoryWriteback_bytes` Amount of memory queued for syncing to disk - `incusnetworkreceivebytestotal{device="<dev>"}` Amount of received bytes on a given interface - `incusnetworkreceivedroptotal{device="<dev>"}` Amount of received dropped bytes on a given interface - `incusnetworkreceiveerrstotal{device="<dev>"}` Amount of received errors on a given interface - `incusnetworkreceivepacketstotal{device="<dev>"}` Amount of received packets on a given interface - `incusnetworktransmitbytestotal{device="<dev>"}` Amount of transmitted bytes on a given interface - `incusnetworktransmitdroptotal{device="<dev>"}` Amount of transmitted dropped bytes on a given interface - `incusnetworktransmiterrstotal{device="<dev>"}` Amount of transmitted errors on a given interface - `incusnetworktransmitpacketstotal{device="<dev>"}` Amount of transmitted packets on a given interface - `incusprocstotal` Number of running processes ``` The following internal metrics are provided: ```{list-table} :header-rows: 1 - Metric Description - `incusgoallocbytestotal` Total number of bytes allocated (even if freed) - `incusgoalloc_bytes` Number of bytes allocated and still in use - `incusgobuckhashsys_bytes` Number of bytes used by the profiling bucket hash table - `incusgofrees_total` Total number of frees - `incusgogcsysbytes` Number of bytes used for garbage collection system metadata - `incusgogoroutines` Number of goroutines that currently exist - `incusgoheapallocbytes` Number of heap bytes allocated and still in use - `incusgoheapidlebytes` Number of heap bytes waiting to be used - `incusgoheapinusebytes` Number of heap bytes that are in use - `incusgoheap_objects` Number of allocated objects - `incusgoheapreleasedbytes` Number of heap bytes released to OS - `incusgoheapsysbytes` Number of heap bytes obtained from system - `incusgolookups_total` Total number of pointer lookups - `incusgomallocs_total` Total number of `mallocs` - `incusgomcacheinusebytes` Number of bytes in use by `mcache` structures - `incusgomcachesysbytes` Number of bytes used for `mcache` structures obtained from system - `incusgomspaninusebytes` Number of bytes in use by `mspan` structures - `incusgomspansysbytes` Number of bytes used for `mspan` structures obtained from system - `incusgonextgcbytes` Number of heap bytes when next garbage collection will take place - `incusgoothersysbytes` Number of bytes used for other system allocations - `incusgostackinusebytes` Number of bytes in use by the stack allocator - `incusgostacksysbytes` Number of bytes obtained from system for stack allocator - `incusgosys_bytes` Number of bytes obtained from system - `incusoperationstotal` Number of running operations - `incusuptimeseconds` Daemon uptime (in seconds) - `incuswarningstotal` Number of active warnings ```