You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/attributes-registry/code.md
+19-3
Original file line number
Diff line number
Diff line change
@@ -14,18 +14,34 @@ These attributes provide context about source code
14
14
|---|---|---|---|---|
15
15
| <aid="code-column-number"href="#code-column-number">`code.column.number`</a> | int | The column number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`. |`16`||
16
16
| <aid="code-file-path"href="#code-file-path">`code.file.path`</a> | string | The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). |`/usr/local/MyApplication/content_root/app/index.php`||
17
-
| <aid="code-function-name"href="#code-function-name">`code.function.name`</a> | string | The method or function name, or equivalent (usually rightmost part of the code unit's name). |`serveRequest`||
17
+
| <aid="code-function-name"href="#code-function-name">`code.function.name`</a> | string | The method or function fully-qualified name without arguments. The value should fit the natural representation of the language runtime, which is also likely the same used within `code.stacktrace` attribute value. [1]|`com.example.MyHttpService.serveRequest`; `GuzzleHttp\Client::transfer`; `fopen`||
18
18
| <aid="code-line-number"href="#code-line-number">`code.line.number`</a> | int | The line number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`. |`42`||
19
-
| <aid="code-namespace"href="#code-namespace">`code.namespace`</a> | string | The "namespace" within which `code.function.name` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function.name` form a unique identifier for the code unit. |`com.example.MyHttpService`||
20
19
| <aid="code-stacktrace"href="#code-stacktrace">`code.stacktrace`</a> | string | A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. |`at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5)`||
21
20
21
+
**[1]`code.function.name`:** Values and format depends on each language runtime, thus it is impossible to provide an exhaustive list of examples.
22
+
The values are usually the same (or prefixes of) the ones found in native stack trace representation stored in
23
+
`code.stacktrace` without information on arguments.
| <aid="code-column"href="#code-column">`code.column`</a> | int | Deprecated, use `code.column.number`|`16`|<br>Replaced by `code.column.number`|
29
-
| <aid="code-filepath"href="#code-filepath">`code.filepath`</a> | string | Deprecated, use `code.file.path` instead |`/usr/local/MyApplication/content_root/app/index.php`||
44
+
| <aid="code-filepath"href="#code-filepath">`code.filepath`</a> | string | Deprecated, use `code.file.path` instead |`/usr/local/MyApplication/content_root/app/index.php`|<br>Replaced by `code.file.path`|
30
45
| <aid="code-function"href="#code-function">`code.function`</a> | string | Deprecated, use `code.function.name` instead |`serveRequest`|<br>Replaced by `code.function.name`|
31
46
| <aid="code-lineno"href="#code-lineno">`code.lineno`</a> | int | Deprecated, use `code.line.number` instead |`42`|<br>Replaced by `code.line.number`|
47
+
| <aid="code-namespace"href="#code-namespace">`code.namespace`</a> | string | Deprecated, namespace is now included into `code.function.name`|`com.example.MyHttpService`|<br>Value should be included in `code.function.name` which is expected to be a fully-qualified name. |
| <aid="cpu-logical-number"href="#cpu-logical-number">`cpu.logical_number`</a> | int | The logical CPU number [0..n-1]|`1`||
12
13
| <aid="cpu-mode"href="#cpu-mode">`cpu.mode`</a> | string | The mode of the CPU |`user`; `system`||
Copy file name to clipboardexpand all lines: docs/attributes-registry/process.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ An operating system process.
22
22
| <aid="process-executable-build-id-gnu"href="#process-executable-build-id-gnu">`process.executable.build_id.gnu`</a> | string | The GNU build ID as found in the `.note.gnu.build-id` ELF section (hex string). |`c89b11207f6479603b0d49bf291c092c2b719293`||
23
23
| <aid="process-executable-build-id-go"href="#process-executable-build-id-go">`process.executable.build_id.go`</a> | string | The Go build ID as retrieved by `go tool buildid <go executable>`. |`foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY`||
24
24
| <aid="process-executable-build-id-htlhash"href="#process-executable-build-id-htlhash">`process.executable.build_id.htlhash`</a> | string | Profiling specific build ID for executables. See the OTel specification for Profiles for more information. |`600DCAFE4A110000F2BF38C493F5FB92`||
25
-
| <aid="process-executable-name"href="#process-executable-name">`process.executable.name`</a> | string | The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. |`otelcol`||
25
+
| <aid="process-executable-name"href="#process-executable-name">`process.executable.name`</a> | string | The name of the process executable. On Linux based systems, this SHOULD be set to the base name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the base name of `GetProcessImageFileNameW`. |`otelcol`||
26
26
| <aid="process-executable-path"href="#process-executable-path">`process.executable.path`</a> | string | The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. |`/usr/bin/cmd/otelcol`||
27
27
| <aid="process-exit-code"href="#process-exit-code">`process.exit.code`</a> | int | The exit code of the process. |`127`||
28
28
| <aid="process-exit-time"href="#process-exit-time">`process.exit.time`</a> | string | The date and time the process exited, in ISO 8601 format. |`2023-11-21T09:26:12.315Z`||
| <aid="system-cpu-logical-number"href="#system-cpu-logical-number">`system.cpu.logical_number`</a> | int | The logical CPU number [0..n-1]|`1`||
| <aid="system-cpu-logical-number"href="#system-cpu-logical-number">`system.cpu.logical_number`</a> | int | Deprecated, use `cpu.logical_number` instead. |`1`||
145
137
| <aid="system-cpu-state"href="#system-cpu-state">`system.cpu.state`</a> | string | Deprecated, use `cpu.mode` instead. |`idle`; `interrupt`|<br>Replaced by `cpu.mode`|
146
138
| <aid="system-network-state"href="#system-network-state">`system.network.state`</a> | string | Deprecated, use `network.connection.state` instead. |`close_wait`|<br>Removed, report network connection state with `network.connection.state` attribute |
147
139
| <aid="system-processes-status"href="#system-processes-status">`system.processes.status`</a> | string | Deprecated, use `system.process.status` instead. |`running`|<br>Replaced by `system.process.status`. |
|[`process.executable.name`](/docs/attributes-registry/process.md)| string | The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. |`otelcol`|`Required`||
32
+
|[`process.executable.name`](/docs/attributes-registry/process.md)| string | The name of the process executable. On Linux based systems, this SHOULD be set to the base name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the base name of `GetProcessImageFileNameW`. |`otelcol`|`Required`||
33
33
|[`process.exit.code`](/docs/attributes-registry/process.md)| int | The exit code of the process. |`127`|`Required`||
34
34
|[`process.pid`](/docs/attributes-registry/process.md)| int | Process identifier (PID). |`1234`|`Required`||
35
35
|[`error.type`](/docs/attributes-registry/error.md)| string | Describes a class of error the operation ended with. [1]|`timeout`; `java.net.UnknownHostException`; `server_certificate_invalid`; `500`|`Conditionally Required` if and only if process.exit.code is not 0 ||
|[`process.executable.name`](/docs/attributes-registry/process.md)| string | The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. |`otelcol`|`Required`||
83
+
|[`process.executable.name`](/docs/attributes-registry/process.md)| string | The name of the process executable. On Linux based systems, this SHOULD be set to the base name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the base name of `GetProcessImageFileNameW`. |`otelcol`|`Required`||
84
84
|[`process.exit.code`](/docs/attributes-registry/process.md)| int | The exit code of the process. |`127`|`Required`||
85
85
|[`process.pid`](/docs/attributes-registry/process.md)| int | Process identifier (PID). |`1234`|`Required`||
86
86
|[`error.type`](/docs/attributes-registry/error.md)| string | Describes a class of error the operation ended with. [1]|`timeout`; `java.net.UnknownHostException`; `server_certificate_invalid`; `500`|`Conditionally Required` if and only if process.exit.code is not 0 ||
|[`code.column.number`](/docs/attributes-registry/code.md)| int | The column number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`. |`16`|`Recommended`||
434
-
|[`code.filepath`](/docs/attributes-registry/code.md)| string | Deprecated, use `code.file.path` instead |`/usr/local/MyApplication/content_root/app/index.php`|`Recommended`||
435
-
|[`code.function.name`](/docs/attributes-registry/code.md)| string | The method or function name, or equivalent (usually rightmost part of the code unit's name). |`serveRequest`|`Recommended`||
434
+
|[`code.filepath`](/docs/attributes-registry/code.md)| string | Deprecated, use `code.file.path` instead |`/usr/local/MyApplication/content_root/app/index.php`|`Recommended`|<br>Replaced by `code.file.path`|
435
+
|[`code.function.name`](/docs/attributes-registry/code.md)| string | The method or function fully-qualified name without arguments. The value should fit the natural representation of the language runtime, which is also likely the same used within `code.stacktrace` attribute value. [1]|`com.example.MyHttpService.serveRequest`; `GuzzleHttp\Client::transfer`; `fopen`|`Recommended`||
436
436
|[`code.line.number`](/docs/attributes-registry/code.md)| int | The line number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`. |`42`|`Recommended`||
437
-
|[`code.namespace`](/docs/attributes-registry/code.md)| string |The "namespace" within which `code.function.name`is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function.name`form a unique identifier for the code unit. |`com.example.MyHttpService`|`Recommended`||
437
+
|[`code.namespace`](/docs/attributes-registry/code.md)| string |Deprecated, namespaceis now included into `code.function.name`|`com.example.MyHttpService`|`Recommended`|<br>Value should be included in `code.function.name` which is expected to be a fully-qualified name.|
438
438
|[`code.stacktrace`](/docs/attributes-registry/code.md)| string | A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. |`at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5)`|`Opt-In`||
439
439
440
+
**[1]`code.function.name`:** Values and format depends on each language runtime, thus it is impossible to provide an exhaustive list of examples.
441
+
The values are usually the same (or prefixes of) the ones found in native stack trace representation stored in
442
+
`code.stacktrace` without information on arguments.
|`hw.host.ambient_temperature`| Gauge |`Cel`| Ambient (external) temperature of the physical host ||
|[`hw.id`](/docs/attributes-registry/hardware.md)| string | An identifier for the hardware component, unique within the monitored host |`win32battery_battery_testsysa33_1`|`Required`||
42
+
|[`hw.name`](/docs/attributes-registry/hardware.md)| string | An easily-recognizable name for the hardware component |`eth0`|`Recommended`||
43
+
|[`hw.parent`](/docs/attributes-registry/hardware.md)| string | Unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller) |`dellStorage_perc_0`|`Recommended`||
44
+
45
+
<!-- markdownlint-restore -->
46
+
<!-- prettier-ignore-end -->
47
+
<!-- END AUTOGENERATED TEXT -->
48
+
<!-- endsemconv -->
49
+
50
+
### Metric: `hw.host.energy`
51
+
52
+
This metric is [recommended][MetricRecommended].
53
+
54
+
<!-- semconv metric.hw.host.energy -->
55
+
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
56
+
<!-- see templates/registry/markdown/snippet.md.j2 -->
57
+
<!-- prettier-ignore-start -->
58
+
<!-- markdownlint-capture -->
59
+
<!-- markdownlint-disable -->
60
+
61
+
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|`hw.host.energy`| Counter |`J`| Total energy consumed by the entire physical host, in joules [1]||
64
+
65
+
**[1]:** The overall energy usage of a host MUST be reported using the specific `hw.host.energy` and `hw.host.power` metrics **only**, instead of the generic `hw.energy` and `hw.power` described in the previous section, to prevent summing up overlapping values.
|[`hw.id`](/docs/attributes-registry/hardware.md)| string | An identifier for the hardware component, unique within the monitored host |`win32battery_battery_testsysa33_1`|`Required`||
70
+
|[`hw.name`](/docs/attributes-registry/hardware.md)| string | An easily-recognizable name for the hardware component |`eth0`|`Recommended`||
71
+
|[`hw.parent`](/docs/attributes-registry/hardware.md)| string | Unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller) |`dellStorage_perc_0`|`Recommended`||
72
+
73
+
<!-- markdownlint-restore -->
74
+
<!-- prettier-ignore-end -->
75
+
<!-- END AUTOGENERATED TEXT -->
76
+
<!-- endsemconv -->
77
+
78
+
### Metric: `hw.host.heating_margin`
79
+
80
+
This metric is [recommended][MetricRecommended].
81
+
82
+
<!-- semconv metric.hw.host.heating_margin -->
83
+
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
84
+
<!-- see templates/registry/markdown/snippet.md.j2 -->
85
+
<!-- prettier-ignore-start -->
86
+
<!-- markdownlint-capture -->
87
+
<!-- markdownlint-disable -->
88
+
89
+
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|`hw.host.heating_margin`| Gauge |`Cel`| By how many degrees Celsius the temperature of the physical host can be increased, before reaching a warning threshold on one of the internal sensors ||
|[`hw.id`](/docs/attributes-registry/hardware.md)| string | An identifier for the hardware component, unique within the monitored host |`win32battery_battery_testsysa33_1`|`Required`||
96
+
|[`hw.name`](/docs/attributes-registry/hardware.md)| string | An easily-recognizable name for the hardware component |`eth0`|`Recommended`||
97
+
|[`hw.parent`](/docs/attributes-registry/hardware.md)| string | Unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller) |`dellStorage_perc_0`|`Recommended`||
98
+
99
+
<!-- markdownlint-restore -->
100
+
<!-- prettier-ignore-end -->
101
+
<!-- END AUTOGENERATED TEXT -->
102
+
<!-- endsemconv -->
103
+
104
+
### Metric: `hw.host.power`
105
+
106
+
This metric is [recommended][MetricRecommended].
107
+
108
+
<!-- semconv metric.hw.host.power -->
109
+
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
110
+
<!-- see templates/registry/markdown/snippet.md.j2 -->
111
+
<!-- prettier-ignore-start -->
112
+
<!-- markdownlint-capture -->
113
+
<!-- markdownlint-disable -->
114
+
115
+
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|`hw.host.power`| Gauge |`W`| Instantaneous power consumed by the entire physical host in Watts (`hw.host.energy` is preferred) [1]||
118
+
119
+
**[1]:** The overall energy usage of a host MUST be reported using the specific `hw.host.energy` and `hw.host.power` metrics **only**, instead of the generic `hw.energy` and `hw.power` described in the previous section, to prevent summing up overlapping values.
|[`hw.id`](/docs/attributes-registry/hardware.md)| string | An identifier for the hardware component, unique within the monitored host |`win32battery_battery_testsysa33_1`|`Required`||
124
+
|[`hw.name`](/docs/attributes-registry/hardware.md)| string | An easily-recognizable name for the hardware component |`eth0`|`Recommended`||
125
+
|[`hw.parent`](/docs/attributes-registry/hardware.md)| string | Unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller) |`dellStorage_perc_0`|`Recommended`||
Copy file name to clipboardexpand all lines: docs/resource/process.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ linkTitle: Process
42
42
|[`process.command`](/docs/attributes-registry/process.md)| string | The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. |`cmd/otelcol`|`Conditionally Required`[1]||
43
43
|[`process.command_args`](/docs/attributes-registry/process.md)| string[]| All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. |`["cmd/otecol", "--config=config.yaml"]`|`Conditionally Required`[2]||
44
44
|[`process.command_line`](/docs/attributes-registry/process.md)| string | The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. |`C:\cmd\otecol --config="my directory\config.yaml"`|`Conditionally Required`[3]||
45
-
|[`process.executable.name`](/docs/attributes-registry/process.md)| string | The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. |`otelcol`|`Conditionally Required`[4]||
45
+
|[`process.executable.name`](/docs/attributes-registry/process.md)| string | The name of the process executable. On Linux based systems, this SHOULD be set to the base name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the base name of `GetProcessImageFileNameW`. |`otelcol`|`Conditionally Required`[4]||
46
46
|[`process.executable.path`](/docs/attributes-registry/process.md)| string | The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. |`/usr/bin/cmd/otelcol`|`Conditionally Required`[5]||
47
47
|[`process.linux.cgroup`](/docs/attributes-registry/process.md)| string | The control group associated with the process. [6]|`1:name=systemd:/user.slice/user-1000.slice/session-3.scope`; `0::/user.slice/user-1000.slice/user@1000.service/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope`|`Recommended`||
48
48
|[`process.owner`](/docs/attributes-registry/process.md)| string | The username of the user that owns the process. |`root`|`Recommended`||
|[`cpu.logical_number`](/docs/attributes-registry/cpu.md)| int | The logical CPU number [0..n-1]|`1`|`Recommended`||
41
+
|[`cpu.mode`](/docs/attributes-registry/cpu.md)| string | The mode of the CPU [1]|`user`; `system`|`Recommended`||
42
+
43
+
**[1]`cpu.mode`:** Following states SHOULD be used: `user`, `system`, `nice`, `idle`, `iowait`, `interrupt`, `steal`
44
+
45
+
---
46
+
47
+
`cpu.mode` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|`cpu.utilization`| Gauge |`1`| For each logical CPU, the utilization is calculated as the change in cumulative CPU time (cpu.time) over a measurement interval, divided by the elapsed time. ||
|[`cpu.logical_number`](/docs/attributes-registry/cpu.md)| int | The logical CPU number [0..n-1]|`1`|`Recommended`||
83
+
|[`cpu.mode`](/docs/attributes-registry/cpu.md)| string | The mode of the CPU [1]|`user`; `system`|`Recommended`||
84
+
85
+
**[1]`cpu.mode`:** Following modes SHOULD be used: `user`, `system`, `nice`, `idle`, `iowait`, `interrupt`, `steal`
86
+
87
+
---
88
+
89
+
`cpu.mode` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|[`cpu.logical_number`](/docs/attributes-registry/cpu.md)| int | The logical CPU number [0..n-1]|`1`|`Recommended`||
|`hw.host.ambient_temperature`| Ambient (external) temperature of the physical host | Cel | Gauge | Double |||
60
-
|`hw.host.energy`| Total energy consumed by the entire physical host, in joules | J | Counter | Int64 |||
61
-
|`hw.host.heating_margin`| By how many degrees Celsius the temperature of the physical host can be increased, before reaching a warning threshold on one of the internal sensors | Cel | Gauge | Double |||
62
-
|`hw.host.power`| Instantaneous power consumed by the entire physical host in Watts (`hw.host.energy` is preferred) | W | Gauge | Double |||
63
-
64
-
> **Note**
65
-
> The overall energy usage of a host MUST be reported using the specific
66
-
> `hw.host.energy` and `hw.host.power` metrics **only**, instead of the generic
67
-
> `hw.energy` and `hw.power` described in the previous section, to prevent
68
-
> summing up overlapping values.
69
-
70
52
### `hw.battery.` - Battery metrics
71
53
72
54
**Description:** A battery in a computer system or an UPS.
|[`cpu.mode`](/docs/attributes-registry/cpu.md)| string | The CPU mode for this data point. A system's CPU SHOULD be characterized *either* by data points with no `mode` labels, *or only* data points with `mode` labels. [1]|`user`; `system`|`Recommended`||
123
-
|[`system.cpu.logical_number`](/docs/attributes-registry/system.md)| int | The logical CPU number [0..n-1]|`1`|`Recommended`||
124
-
125
-
**[1]`cpu.mode`:** Following states SHOULD be used: `user`, `system`, `nice`, `idle`, `iowait`, `interrupt`, `steal`
126
-
127
-
---
128
-
129
-
`cpu.mode` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|`system.cpu.utilization`| Gauge |`1`| Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs ||
|[`cpu.mode`](/docs/attributes-registry/cpu.md)| string | The CPU mode for this data point. A system's CPU SHOULD be characterized *either* by data points with no `mode` labels, *or only* data points with `mode` labels. [1]|`user`; `system`|`Recommended`||
165
-
|[`system.cpu.logical_number`](/docs/attributes-registry/system.md)| int | The logical CPU number [0..n-1]|`1`|`Recommended`||
166
-
167
-
**[1]`cpu.mode`:** Following modes SHOULD be used: `user`, `system`, `nice`, `idle`, `iowait`, `interrupt`, `steal`
168
-
169
-
---
170
-
171
-
`cpu.mode` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|`system.cpu.frequency`| Gauge |`{Hz}`| Reports the current frequency of the CPU in Hz ||
|[`system.cpu.logical_number`](/docs/attributes-registry/system.md)| int | The logical CPU number [0..n-1]|`1`|`Recommended`||
251
-
252
-
<!-- markdownlint-restore -->
253
-
<!-- prettier-ignore-end -->
254
-
<!-- END AUTOGENERATED TEXT -->
255
-
<!-- endsemconv -->
256
-
257
146
## Memory Metrics
258
147
259
148
**Description:** System level memory metrics capture under the namespace `system.memory`.
brief: "Seconds each logical CPU spent on each mode"
8
+
instrument: counter
9
+
unit: "s"
10
+
attributes:
11
+
- ref: cpu.mode
12
+
note: "Following states SHOULD be used: `user`, `system`, `nice`, `idle`, `iowait`, `interrupt`, `steal`"
13
+
- ref: cpu.logical_number
14
+
15
+
- id: metric.cpu.utilization
16
+
type: metric
17
+
metric_name: cpu.utilization
18
+
stability: development
19
+
brief: "For each logical CPU, the utilization is calculated as the change in cumulative CPU time (cpu.time) over a measurement interval, divided by the elapsed time."
20
+
instrument: gauge
21
+
unit: "1"
22
+
attributes:
23
+
- ref: cpu.mode
24
+
note: "Following modes SHOULD be used: `user`, `system`, `nice`, `idle`, `iowait`, `interrupt`, `steal`"
25
+
- ref: cpu.logical_number
26
+
27
+
- id: metric.cpu.frequency
28
+
type: metric
29
+
metric_name: cpu.frequency
30
+
stability: development
31
+
brief: "Operating frequency of the logical CPU in Hertz."
Copy file name to clipboardexpand all lines: model/system/metrics.yaml
+8-44
Original file line number
Diff line number
Diff line change
@@ -12,42 +12,6 @@ groups:
12
12
unit: "s"
13
13
14
14
# system.cpu.* metrics
15
-
- id: metric.system.cpu.time
16
-
type: metric
17
-
metric_name: system.cpu.time
18
-
stability: development
19
-
brief: "Seconds each logical CPU spent on each mode"
20
-
instrument: counter
21
-
unit: "s"
22
-
attributes:
23
-
- ref: cpu.mode
24
-
brief: "The CPU mode for this data point. A system's CPU SHOULD be characterized *either* by data points with no `mode` labels, *or only* data points with `mode` labels."
25
-
note: "Following states SHOULD be used: `user`, `system`, `nice`, `idle`, `iowait`, `interrupt`, `steal`"
26
-
- ref: system.cpu.logical_number
27
-
28
-
- id: metric.system.cpu.utilization
29
-
type: metric
30
-
metric_name: system.cpu.utilization
31
-
stability: development
32
-
brief: "Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs"
33
-
instrument: gauge
34
-
unit: "1"
35
-
attributes:
36
-
- ref: cpu.mode
37
-
brief: "The CPU mode for this data point. A system's CPU SHOULD be characterized *either* by data points with no `mode` labels, *or only* data points with `mode` labels."
38
-
note: "Following modes SHOULD be used: `user`, `system`, `nice`, `idle`, `iowait`, `interrupt`, `steal`"
39
-
- ref: system.cpu.logical_number
40
-
41
-
- id: metric.system.cpu.frequency
42
-
type: metric
43
-
metric_name: system.cpu.frequency
44
-
stability: development
45
-
brief: "Reports the current frequency of the CPU in Hz"
46
-
instrument: gauge
47
-
unit: "{Hz}"
48
-
attributes:
49
-
- ref: system.cpu.logical_number
50
-
51
15
- id: metric.system.cpu.physical.count
52
16
type: metric
53
17
metric_name: system.cpu.physical.count
@@ -193,12 +157,12 @@ groups:
193
157
instrument: counter
194
158
unit: "s"
195
159
note: |
196
-
The real elapsed time ("wall clock") used in the I/O path (time from operations running in parallel are not counted). Measured as:
160
+
The real elapsed time ("wall clock") used in the I/O path (time from operations running in parallel are not counted). Measured as:
197
161
198
-
- Linux: Field 13 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats)
0 commit comments