Clarify how to report the total amount of memory (#409)
Co-authored-by: Alexander Wert <AlexanderWert@users.noreply.github.com>
This commit is contained in:
parent
76bb38700e
commit
131637a718
|
|
@ -28,6 +28,8 @@ release.
|
||||||
([#429](https://github.com/open-telemetry/semantic-conventions/pull/429))
|
([#429](https://github.com/open-telemetry/semantic-conventions/pull/429))
|
||||||
- Use seconds as default duration for FaaS duration histograms
|
- Use seconds as default duration for FaaS duration histograms
|
||||||
([#384](https://github.com/open-telemetry/semantic-conventions/pull/384))
|
([#384](https://github.com/open-telemetry/semantic-conventions/pull/384))
|
||||||
|
- BREAKING: Remove `total` from list of well-known values of `system.memory.state` attribute.
|
||||||
|
([#409](https://github.com/open-telemetry/semantic-conventions/pull/409))
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
|
|
@ -35,6 +37,8 @@ release.
|
||||||
([#348](https://github.com/open-telemetry/semantic-conventions/pull/348))
|
([#348](https://github.com/open-telemetry/semantic-conventions/pull/348))
|
||||||
- Metric namespaces SHOULD NOT be pluralized.
|
- Metric namespaces SHOULD NOT be pluralized.
|
||||||
([#267](https://github.com/open-telemetry/opentelemetry-specification/pull/267))
|
([#267](https://github.com/open-telemetry/opentelemetry-specification/pull/267))
|
||||||
|
- Add opt-in `system.memory.limit` metric.
|
||||||
|
([#409](https://github.com/open-telemetry/semantic-conventions/pull/409))
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ Resource attributes related to a host, SHOULD be reported under the `host.*` nam
|
||||||
* [Metric: `system.cpu.frequency`](#metric-systemcpufrequency)
|
* [Metric: `system.cpu.frequency`](#metric-systemcpufrequency)
|
||||||
- [Memory Metrics](#memory-metrics)
|
- [Memory Metrics](#memory-metrics)
|
||||||
* [Metric: `system.memory.usage`](#metric-systemmemoryusage)
|
* [Metric: `system.memory.usage`](#metric-systemmemoryusage)
|
||||||
|
* [Metric: `system.memory.limit`](#metric-systemmemorylimit)
|
||||||
* [Metric: `system.memory.utilization`](#metric-systemmemoryutilization)
|
* [Metric: `system.memory.utilization`](#metric-systemmemoryutilization)
|
||||||
- [Paging/Swap Metrics](#pagingswap-metrics)
|
- [Paging/Swap Metrics](#pagingswap-metrics)
|
||||||
* [Metric: `system.paging.usage`](#metric-systempagingusage)
|
* [Metric: `system.paging.usage`](#metric-systempagingusage)
|
||||||
|
|
@ -174,7 +175,10 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.system.memory.usage(metric_table) -->
|
<!-- semconv metric.system.memory.usage(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `system.memory.usage` | UpDownCounter | `By` | |
|
| `system.memory.usage` | UpDownCounter | `By` | Reports memory in use by state. [1] |
|
||||||
|
|
||||||
|
**[1]:** The sum over all `system.memory.state` values SHOULD equal the total memory
|
||||||
|
available on the system, that is `system.memory.limit`.
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
<!-- semconv metric.system.memory.usage(full) -->
|
<!-- semconv metric.system.memory.usage(full) -->
|
||||||
|
|
@ -186,7 +190,6 @@ This metric is [recommended][MetricRecommended].
|
||||||
|
|
||||||
| Value | Description |
|
| Value | Description |
|
||||||
|---|---|
|
|---|---|
|
||||||
| `total` | total |
|
|
||||||
| `used` | used |
|
| `used` | used |
|
||||||
| `free` | free |
|
| `free` | free |
|
||||||
| `shared` | shared |
|
| `shared` | shared |
|
||||||
|
|
@ -194,6 +197,21 @@ This metric is [recommended][MetricRecommended].
|
||||||
| `cached` | cached |
|
| `cached` | cached |
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
### Metric: `system.memory.limit`
|
||||||
|
|
||||||
|
This metric is [opt-in][MetricOptIn].
|
||||||
|
|
||||||
|
<!-- semconv metric.system.memory.limit(metric_table) -->
|
||||||
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
|
| `system.memory.limit` | UpDownCounter | `By` | Total memory available in the system. [1] |
|
||||||
|
|
||||||
|
**[1]:** Its value SHOULD equal the sum of `system.memory.state` over all states.
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
<!-- semconv metric.system.memory.limit(full) -->
|
||||||
|
<!-- endsemconv -->
|
||||||
|
|
||||||
### Metric: `system.memory.utilization`
|
### Metric: `system.memory.utilization`
|
||||||
|
|
||||||
This metric is [recommended][MetricRecommended].
|
This metric is [recommended][MetricRecommended].
|
||||||
|
|
@ -213,7 +231,6 @@ This metric is [recommended][MetricRecommended].
|
||||||
|
|
||||||
| Value | Description |
|
| Value | Description |
|
||||||
|---|---|
|
|---|---|
|
||||||
| `total` | total |
|
|
||||||
| `used` | used |
|
| `used` | used |
|
||||||
| `free` | free |
|
| `free` | free |
|
||||||
| `shared` | shared |
|
| `shared` | shared |
|
||||||
|
|
@ -769,6 +786,7 @@ an `{os}` prefix to split this metric across OSes.
|
||||||
|
|
||||||
[DocumentStatus]: https://github.com/open-telemetry/opentelemetry-specification/tree/v1.26.0/specification/document-status.md
|
[DocumentStatus]: https://github.com/open-telemetry/opentelemetry-specification/tree/v1.26.0/specification/document-status.md
|
||||||
[MetricRecommended]: https://github.com/open-telemetry/opentelemetry-specification/tree/v1.26.0/specification/metrics/metric-requirement-level.md#recommended
|
[MetricRecommended]: https://github.com/open-telemetry/opentelemetry-specification/tree/v1.26.0/specification/metrics/metric-requirement-level.md#recommended
|
||||||
|
[MetricOptIn]: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.26.0/specification/metrics/metric-requirement-level.md#opt-in
|
||||||
|
|
||||||
### Metric: `system.linux.memory.available`
|
### Metric: `system.linux.memory.available`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -96,8 +96,6 @@ groups:
|
||||||
type:
|
type:
|
||||||
allow_custom_values: true
|
allow_custom_values: true
|
||||||
members:
|
members:
|
||||||
- id: total
|
|
||||||
value: 'total'
|
|
||||||
- id: used
|
- id: used
|
||||||
value: 'used'
|
value: 'used'
|
||||||
- id: free
|
- id: free
|
||||||
|
|
@ -114,12 +112,24 @@ groups:
|
||||||
- id: metric.system.memory.usage
|
- id: metric.system.memory.usage
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: system.memory.usage
|
metric_name: system.memory.usage
|
||||||
brief: ""
|
brief: "Reports memory in use by state."
|
||||||
|
note: |
|
||||||
|
The sum over all `system.memory.state` values SHOULD equal the total memory
|
||||||
|
available on the system, that is `system.memory.limit`.
|
||||||
instrument: updowncounter
|
instrument: updowncounter
|
||||||
unit: "By"
|
unit: "By"
|
||||||
attributes:
|
attributes:
|
||||||
- ref: system.memory.state
|
- ref: system.memory.state
|
||||||
|
|
||||||
|
- id: metric.system.memory.limit
|
||||||
|
type: metric
|
||||||
|
metric_name: system.memory.limit
|
||||||
|
brief: "Total memory available in the system."
|
||||||
|
note: |
|
||||||
|
Its value SHOULD equal the sum of `system.memory.state` over all states.
|
||||||
|
instrument: updowncounter
|
||||||
|
unit: "By"
|
||||||
|
|
||||||
- id: metric.system.memory.utilization
|
- id: metric.system.memory.utilization
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: system.memory.utilization
|
metric_name: system.memory.utilization
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue