Semantic Conventions for OS Process Metrics
This document describes instruments and attributes for common OS process level metrics in OpenTelemetry. Also consider the general metric semantic conventions when creating instruments not explicitly defined in this document. OS process metrics are not related to the runtime environment of the program, and should take measurements from the operating system. For runtime environment metrics see semantic conventions for runtime environment metrics.
Below is a table of Process metric instruments.
|Name||Instrument Type (*)||Units||Description||Labels|
|Counter||s||Total CPU seconds broken down by different states.|
|Gauge||s||Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process.|
|UpDownCounter||By||The amount of physical memory in use.|
|UpDownCounter||By||The amount of committed virtual memory.|
|Counter||By||Disk bytes transferred.|
Process metrics SHOULD be associated with a
process resource whose attributes provide additional context about the process.