Skip to content

Commit

Permalink
Add process.runtime.jvm.available_processors metric
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed May 8, 2023
1 parent 97940e7 commit ba2a678
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ release.
- Add transition plan for upcoming breaking changes to the unstable HTTP semantic
conventions.
([#3443](https://github.com/open-telemetry/opentelemetry-specification/pull/3443))
- Add `process.runtime.jvm.available_processors` metric.
([#3484](https://github.com/open-telemetry/opentelemetry-specification/pull/3484))

### Compatibility

Expand Down
7 changes: 7 additions & 0 deletions semantic_conventions/metrics/process-runtime-jvm-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ groups:
instrument: gauge
unit: "1"

- id: metric.process.runtime.jvm.available_processors
type: metric
metric_name: process.runtime.jvm.available_processors
brief: "The number of processors available to the JVM."
instrument: updowncounter
unit: "{processor}"

- id: attributes.process.runtime.jvm.buffer
type: attribute_group
brief: "Describes JVM buffer metric attributes."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,17 @@ This metric is obtained from [`OperatingSystemMXBean#getSystemLoadAverage()`](ht
<!-- semconv metric.process.runtime.jvm.system.cpu.load_1m(full) -->
<!-- endsemconv -->

### Metric: `process.runtime.jvm.available_processors`

This metric is [recommended](../metric-requirement-level.md#recommended).
This metric is obtained from [`OperatingSystemMXBean#getAvailableProcessors()`](https://docs.oracle.com/javase/8/docs/api/java/lang/management/OperatingSystemMXBean.html#getAvailableProcessors--).

<!-- semconv metric.process.runtime.jvm.available_processors(metric_table) -->
| Name | Instrument Type | Unit (UCUM) | Description |
| -------- | --------------- | ----------- | -------------- |
| `process.runtime.jvm.available_processors` | UpDownCounter | `{processor}` | The number of processors available to the JVM. |
<!-- endsemconv -->

### Metric: `process.runtime.jvm.buffer.usage`

This metric is [recommended](../metric-requirement-level.md#recommended).
Expand Down

0 comments on commit ba2a678

Please sign in to comment.