Перейти к содержанию

cpu collector

cpu collects CPU usage statistics.

Configuration

ParameterTypeDefaultDescription
idStringCollector's ID. Must be unique per agent instance. Will be returned along with the metrics.
typeStringMust be cpu
serviceStringEqual to idService id for output metrics
intervalIntegerRepetition interval in seconds
labelsArray of StringsList of additional labels. Will be returned along with metrics

Collected Metrics

MetricMetric TypePlatformDescription
tsAllISO 8601 Timestamp
collectorAllCollector Id
labelsAllList of labels
userAll
niceAll
systemAll
interruptAll
idleAll
iowaitLinux

cpu collector appends following labels

LabelDescription
noc::cpu::{name}CPU number

Compilation Features

Enable cpu feature during compiling the agent (Enabled by default).