Project: LINSTOR (Runtime / Cloud Native Storage)
File: prometheus.md

The LINSTOR controller exposes metrics that can be scraped by Prometheus. The endpoint used for scraping metrics is exposed on `127.0.0.1:3370/metrics` on the LINSTOR controller. `linstor_info`: Versioning information for the LINSTOR controller. `linstornodestate`: Node type and state for each node in LINSTOR. `linstorresourcedefinition_count`: Number of resources currently managed by LINSTOR. `linstorresourcestate`: State of each resource managed by LINSTOR. `linstorvolumestate`: State of each volume managed by LINSTOR. `linstorvolumeallocatedsizebytes`: Total storage in bytes currently allocated for given volume. `linstorstoragepoolcapacityfree_bytes`: Total free storage in bytes available in given LINSTOR storage-pool. `linstorstoragepoolcapacitytotal_bytes`: Total storage in bytes managed by given LINSTOR storage-pool. `linstorstoragepoolerrorcount`: Number or errors logged on given LINSTOR storage-pool. `linstorerrorreports_count`: Number or error-reports logged by LINSTOR. `linstorscraperequests_count`: Number of scrape requests on the LINSTOR metrics endpoint since last restart. `linstorscrapeduration_seconds`: Time spent scraping LINSTOR metrics in seconds. `jvmmemorybytes_used`: Used bytes of a given JVM memory area. `jvmmemorybytes_committed`: Committed bytes of a given JVM memory area. `jvmmemorybytes_max`: Max bytes of a given JVM memory area. `jvmmemorybytes_init`: Initial bytes of a given JVM memory area. `jvmmemorypoolbytesused`: Used bytes of a given JVM memory pool. `jvmmemorypoolbytescommitted`: Committed bytes of a given JVM memory pool. `jvmmemorypoolbytesmax`: Max bytes of a given JVM memory pool. `jvmmemorypoolbytesinit`: Initial bytes of a given JVM memory pool. `jvmclassesloaded`: Number of classes currently loaded in the JVM. `jvmclassesloaded_total`: Number of classes that have been loaded since JVM start. `jvmclassesunloaded_total`: Number of classes that have been unloaded since JVM start. `jvmthreadscurrent`: Current thread count of a JVM. `jvmthreadsdaemon`: Daemon thread count of a JVM. `jvmthreadspeak`: Peak thread count of a JVM. `jvmthreadsstarted_total`: Started thread count of a JVM. `jvmthreadsdeadlocked`: Cycles of JVM threads that are in a deadlock state. `jvmthreadsdeadlocked_monitor`: Cycles of JVM threads that are in a deadlock state waiting to acquire object monitors. `jvmthreadsstate`: Number of threads by state. `jvm_info`: JVM version info. `processcpuseconds_total`: Total user and system CPU time spent in seconds. `processstarttime_seconds`: Start time of the process since Unix epoch in seconds. `processopenfds`: Number of open file descriptors. `processmaxfds`: Maximum number of open file descriptors. `processvirtualmemory_bytes`: Virtual memory size in bytes. `processresidentmemory_bytes`: Resident memory size in bytes. `jvmbufferpoolusedbytes`: Used bytes of a given JVM buffer pool. `jvmbufferpoolcapacitybytes`: Capacity of JVM buffer pool in bytes. `jvmbufferpoolusedbuffers`: Used buffers of a given JVM buffer pool. `jvmmemorypoolallocatedbytes_total`: Total bytes allocated in given JVM memory pool. `jvmgccollection_seconds`: Time spent in a given JVM garbage collector in seconds.