Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add process.runtime.jvm.available_processors metric #3484

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
trask marked this conversation as resolved.
Show resolved Hide resolved
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 @@ -33,6 +33,7 @@ semantic conventions when instrumenting runtime environments.
* [Metric: `process.runtime.jvm.cpu.utilization`](#metric-processruntimejvmcpuutilization)
* [Metric: `process.runtime.jvm.system.cpu.utilization`](#metric-processruntimejvmsystemcpuutilization)
* [Metric: `process.runtime.jvm.system.cpu.load_1m`](#metric-processruntimejvmsystemcpuload_1m)
* [Metric: `process.runtime.jvm.available_processors`](#metric-processruntimejvmavailable_processors)
* [Metric: `process.runtime.jvm.buffer.usage`](#metric-processruntimejvmbufferusage)
* [Metric: `process.runtime.jvm.buffer.limit`](#metric-processruntimejvmbufferlimit)
* [Metric: `process.runtime.jvm.buffer.count`](#metric-processruntimejvmbuffercount)
Expand Down Expand Up @@ -341,6 +342,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 [`Runtime#availableProcessors()`](https://docs.oracle.com/javase/8/docs/api/java/lang/Runtime.html#availableProcessors--).

<!-- 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