host-cpu datasource
The host-cpu datasource collects information about CPUs from the operating system and creates metric data points and entities.
Metrics
Name | Units | Description |
|---|---|---|
| percent | Percent of CPU used for guest activity |
| percent | Percent of CPU used for guest nice activity |
| percent | Percent of CPU used for idleness |
| percent | Percent of CPU used for IO Waiting activity |
| percent | Percent of CPU used for IRQ activity |
| percent | Percent of CPU used for Nice activity |
| percent | Percent of CPU used for Soft IRQ activity |
| percent | Percent of CPU used for Steal activity |
| percent | Percent of system used for System activity |
| percent | Percent of CPU used for User activity |
Name styles
Canonical style | ZenPack style |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Entities
This datasource collects the following entity properties on Linux hosts and creates one entity per logical processor.
Property | Description |
|---|---|
| Size of the L2 cache, in bytes |
| CPU speed, in megahertz |
| Physical core index |
| Number of logical processors (always 1) |
| Numeric index of logical core |
| CPU family number |
| List of instructions supported by a CPU |
| Name of the CPU maker |
| Microcode version |
| CPU model number |
| CPU model name |
| CPU name |
| Numeric ID of a socket in multi-socket systems (0 in single-socket systems) |
| Base clock speed multiplier |
Example
{
"cacheSizeL2": "8192",
"clockspeed": "1991.999",
"coreId": "0",
"cores": "1",
"cpu": "0",
"family": "6",
"flags": [
"fpu",
"vme",
"popcnt",
"aes",
"xsave",
"avx",
"hypervisor",
"lahf_lm",
"arat"
],
"manufacturer": "GenuineIntel",
"microcode": "0xffffffff",
"model": "142",
"modelName": "Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz",
"name": "ServerStation1 - cpu0",
"socket": "0",
"stepping": "10"
}
Configuration
If you specify the host-cpu datasource during installation, its configuration file is placed in the following location:
/etc/zendatamon-configs/configs/host-cpu.config.yaml
Otherwise, you must copy it from the templates directory:
cp /etc/zendatamon-configs/.templates/.configs/host-cpu.config.yaml \ /etc/zendatamon-configs/configs/host-cpu.config.yaml
The Virtana Service Observability agent service monitors the /etc/zendatamon-configs/configs directory and loads any new or changed configuration files immediately.
Properties
interval(number)The number of seconds to wait between collection attempts. This value overrides the
defaultIntervalvalue in the Virtana Service Observability agent service configuration file.timeout(number)The number of seconds to wait before dropping a collection attempt.
metric-names-variant(string, default =canonical)The metric name style, either
canonicalorlinuxMonitorZenPack.protocol(string, default =local)Collection type; only
localis supported, so this key can be omitted.
Example
apiVersion: v1
kind: datasource
name: host-cpu
spec:
type: host-cpu
datasource:
interval: 60
timeout: 30
metric-names-variant: canonical
protocol: ""