Skip to content

Commit 858f605

Browse files
committed
add jvm.file_descriptor.count metric to jvm specification
1 parent 379d13f commit 858f605

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Use this changelog template to create an entry for release notes.
2+
#
3+
# If your change doesn't affect end users you should instead start
4+
# your pull request title with [chore] or use the "Skip Changelog" label.
5+
6+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
7+
change_type: enhancement
8+
9+
# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db)
10+
component: jvm
11+
12+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
13+
note: Add `jvm.file_descriptor.count` as a development metric to track the number of open file descriptors by the JVM.
14+
15+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
16+
# The values here must be integers.
17+
issues: [1838]
18+
19+
# (Optional) One or more lines of additional information to render under the primary note.
20+
# These lines will be padded with 2 spaces and then inserted directly into the document.
21+
# Use pipe (|) for multiline entries.
22+
subtext:

docs/runtime/jvm-metrics.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,22 @@ This metric is obtained from [`BufferPoolMXBean#getCount()`](https://docs.oracle
600600
<!-- END AUTOGENERATED TEXT -->
601601
<!-- endsemconv -->
602602

603+
<!-- semconv metric.jvm.file_descriptor.count -->
604+
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
605+
<!-- see templates/registry/markdown/snippet.md.j2 -->
606+
<!-- prettier-ignore-start -->
607+
<!-- markdownlint-capture -->
608+
<!-- markdownlint-disable -->
609+
610+
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
611+
| -------- | --------------- | ----------- | -------------- | --------- |
612+
| `jvm.file_descriptor.count` | UpDownCounter | `{file_descriptor}` | Number of open file descriptors by the JVM. | ![Development](https://img.shields.io/badge/-development-blue) |
613+
614+
<!-- markdownlint-restore -->
615+
<!-- prettier-ignore-end -->
616+
<!-- END AUTOGENERATED TEXT -->
617+
<!-- endsemconv -->
618+
603619
[DocumentStatus]: https://opentelemetry.io/docs/specs/otel/document-status
604620
[MetricOptIn]: /docs/general/metric-requirement-level.md#opt-in
605621
[MetricRecommended]: /docs/general/metric-requirement-level.md#recommended

model/jvm/metrics-experimental.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,11 @@ groups:
6767
brief: "Number of buffers in the pool."
6868
instrument: updowncounter
6969
unit: "{buffer}"
70+
71+
- id: metric.jvm.file_descriptor.count
72+
type: metric
73+
metric_name: jvm.file_descriptor.count
74+
stability: development
75+
brief: "Number of open file descriptors by the JVM."
76+
instrument: updowncounter
77+
unit: "{file_descriptor}"

0 commit comments

Comments
 (0)