Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add host cpu info #209

Merged
merged 10 commits into from
Sep 7, 2023
14 changes: 14 additions & 0 deletions docs/resource/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@
| `x86` | 32-bit x86 |
<!-- endsemconv -->

**type:** `host.cpu`

<!-- semconv host.cpu -->
| Attribute | Type | Description | Examples | Requirement Level |
|---|---|---|---|---|
| `host.cpu.vendor_id` | string | Processor manufacturer. First part of the CPUID identifier - a maximum 12-character name of the manufacturer. | `GenuineIntel` | Opt-In |
| `host.cpu.family` | string | Numeric value specifying model variant. Second part of the CPUID identifier. | `6` | Opt-In |
| `host.cpu.model` | string | VM image ID or host OS image ID. For Cloud, this value is from the provider. | `6` | Opt-In |
| `host.cpu.model_name` | string | Model designation of the processor. | `11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz` | Opt-In |
| `host.cpu.stepping` | string | Stepping or core revisions. | `1` | Opt-In |
| `host.cpu.frequency` | string | Clock frequency in MHz. | `3000.000` | Opt-In |
| `host.cpu.cache_size` | string | The amount of level 2 memory cache available to the processor (in Bytes). | `12288000` | Opt-In |
<!-- endsemconv -->

## Collecting host.id from non-containerized systems

### Non-privileged Machine ID Lookup
Expand Down
48 changes: 48 additions & 0 deletions model/resource/host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,51 @@ groups:
The version string of the VM image or host OS as defined in
[Version Attributes](README.md#version-attributes).
examples: ['0.1']
- id: host.cpu
prefix: host.cpu
type: resource
brief: >
A host's CPU information
attributes:
- id: vendor_id
requirement_level: opt_in
type: string
brief: >
Processor manufacturer. First part of the CPUID identifier - a maximum 12-character name of the manufacturer.
ChrsMark marked this conversation as resolved.
Show resolved Hide resolved
examples: [ 'GenuineIntel' ]
- id: family
requirement_level: opt_in
type: string
brief: >
Numeric value specifying model variant. Second part of the CPUID identifier.
examples: [ '6' ]
- id: model
requirement_level: opt_in
type: string
brief: >
VM image ID or host OS image ID. For Cloud, this value is from the provider.
examples: [ '6' ]
- id: model_name
requirement_level: opt_in
type: string
brief: >
Model designation of the processor.
examples: [ '11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz' ]
- id: stepping
requirement_level: opt_in
type: string
brief: >
Stepping or core revisions.
examples: [ '1' ]
- id: frequency
requirement_level: opt_in
type: string
brief: >
Clock frequency in MHz.
examples: [ '3000.000' ]
- id: cache_size
requirement_level: opt_in
type: string
brief: >
The amount of level 2 memory cache available to the processor (in Bytes).
examples: [ '12288000' ]