Skip to content

feat: Add jvm.file_descriptor.count metric to jvm experimental metrics#2139

Merged
trask merged 5 commits intoopen-telemetry:mainfrom
schmikei:add-file-descriptor-metric-to-jvm
Apr 18, 2025
Merged

feat: Add jvm.file_descriptor.count metric to jvm experimental metrics#2139
trask merged 5 commits intoopen-telemetry:mainfrom
schmikei:add-file-descriptor-metric-to-jvm

Conversation

@schmikei
Copy link
Copy Markdown
Contributor

Resolves #1838

Changes

This adds the UNIX specific JVM metric to the specification and docs for JVM runtime metrics.

This is the first time I'm contributing to this portion of Otel so please let me know if there's any other file I need to update and any guidance maintainers would like to share!

Merge requirement checklist

@joaopgrassi joaopgrassi moved this from Untriaged to In Review in Semantic Conventions Triage Apr 18, 2025
Copy link
Copy Markdown
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@trask trask moved this from In Review to Needs More Approval in Semantic Conventions Triage Apr 18, 2025
Copy link
Copy Markdown
Contributor

@SylvainJuge SylvainJuge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, do you think we should also include jvm.file_descriptor.limit ?

From experience the open count is enough to monitor any file descriptor leak in applications, but knowing how far we are from the limit (for example when it has been set too low) could be relevant as well without being too much effort as it's already provided by the JVM.

I would suggest to do so in a separate PR though.

@trask
Copy link
Copy Markdown
Member

trask commented Apr 18, 2025

LGTM, do you think we should also include jvm.file_descriptor.limit ?

I think we have tracking issue for this already: #1275

@trask trask added this pull request to the merge queue Apr 18, 2025
Merged via the queue into open-telemetry:main with commit 6269289 Apr 18, 2025
15 checks passed
@schmikei schmikei deleted the add-file-descriptor-metric-to-jvm branch April 22, 2025 19:21
lmolkova pushed a commit to lmolkova/semantic-conventions that referenced this pull request May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Consider adding JVM metric for open file descriptors Semantic Conventions

4 participants