Skip to content

Commit

Permalink
Clarify system.cpu.utilization metric definition (#2435)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Mar 28, 2022
1 parent 101c914 commit d3dc597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion specification/metrics/semantic_conventions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ be less than or greater than the real wall time between measurements.
values. **utilization** for time instruments can be derived automatically
using metric event timestamps. For example, `system.cpu.utilization` is
defined as the difference in `system.cpu.time` measurements divided by the
elapsed time.
elapsed time and number of CPUs.

- **io** - an instrument that measures bidirectional data flow should be
called `entity.io` and have attributes for direction. For example,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ instruments not explicitly defined in the specification.
| ---------------------- | ----------- | ----- | ---------------------| ---------- | ---------------- | ----------------------------------- |
| system.cpu.time | | s | Asynchronous Counter | Double | state | idle, user, system, interrupt, etc. |
| | | | | | cpu | CPU number [0..n-1] |
| system.cpu.utilization | | 1 | Asynchronous Gauge | Double | state | idle, user, system, interrupt, etc. |
| system.cpu.utilization | Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of CPUs | 1 | Asynchronous Gauge | Double | state | idle, user, system, interrupt, etc. |
| | | | | | cpu | CPU number (0..n) |

### `system.memory.` - Memory metrics
Expand Down

0 comments on commit d3dc597

Please sign in to comment.