Skip to content

Latest commit

 

History

History
85 lines (56 loc) · 2.34 KB

File metadata and controls

85 lines (56 loc) · 2.34 KB

hostmetricsreceiver/cpu

Parent Component: hostmetrics

Default Metrics

The following metrics are emitted by default. Each of them can be disabled by applying the following configuration:

metrics:
  <metric_name>:
    enabled: false

system.cpu.time

Total seconds each logical CPU spent on each mode.

Unit Metric Type Value Type Aggregation Temporality Monotonic
s Sum Double Cumulative true

Attributes

Name Description Values
cpu Logical CPU number starting at 0. Any Str
state Breakdown of CPU usage by type. Str: idle, interrupt, nice, softirq, steal, system, user, wait

Optional Metrics

The following metrics are not emitted by default. Each of them can be enabled by applying the following configuration:

metrics:
  <metric_name>:
    enabled: true

system.cpu.frequency

Current frequency of the CPU core in Hz.

Unit Metric Type Value Type
Hz Gauge Double

Attributes

Name Description Values
cpu Logical CPU number starting at 0. Any Str

system.cpu.logical.count

Number of available logical CPUs.

Unit Metric Type Value Type Aggregation Temporality Monotonic
{cpu} Sum Int Cumulative false

system.cpu.physical.count

Number of available physical CPUs.

Unit Metric Type Value Type Aggregation Temporality Monotonic
{cpu} Sum Int Cumulative false

system.cpu.utilization

Difference in system.cpu.time since the last measurement per logical CPU, divided by the elapsed time (value in interval [0,1]).

Unit Metric Type Value Type
1 Gauge Double

Attributes

Name Description Values
cpu Logical CPU number starting at 0. Any Str
state Breakdown of CPU usage by type. Str: idle, interrupt, nice, softirq, steal, system, user, wait