Skip to content

Commit

Permalink
change cpu.time unit to seconds
Browse files Browse the repository at this point in the history
Signed-off-by: ChrsMark <[email protected]>
  • Loading branch information
ChrsMark committed Feb 28, 2024
1 parent a22a501 commit 1ae7244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/system/container-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This metric is optional.
<!-- semconv metric.container.cpu.time(metric_table) -->
| Name | Instrument Type | Unit (UCUM) | Description |
| -------- | --------------- | ----------- | -------------- |
| `container.cpu.time` | Counter | `ns` | Total CPU time consumed [1] |
| `container.cpu.time` | Counter | `s` | Total CPU time consumed [1] |

**[1]:** Total CPU time consumed by the specific container.
<!-- endsemconv -->
Expand Down
2 changes: 1 addition & 1 deletion model/metrics/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ groups:
note: >
Total CPU time consumed by the specific container.
instrument: counter
unit: "ns"
unit: "s"
attributes:
- ref: container.cpu.state
requirement_level: opt_in
Expand Down

0 comments on commit 1ae7244

Please sign in to comment.