Skip to content

Conversation

@xiangtianyu
Copy link
Contributor

related to #9340 Add file descriptor metrics to agent (support openj9)

@xiangtianyu xiangtianyu requested a review from a team July 22, 2024 11:36
@breedx-splk
Copy link
Contributor

@xiangtianyu are you able to still take a look at this? Thanks!

@xiangtianyu
Copy link
Contributor Author

@xiangtianyu are you able to still take a look at this? Thanks!

Nobody response my issue open-telemetry/semantic-conventions#1275 . Is there any update about the metrics specification?

@trask
Copy link
Member

trask commented Nov 22, 2024

@xiangtianyu are you able to still take a look at this? Thanks!

Nobody response my issue open-telemetry/semantic-conventions#1275 . Is there any update about the metrics specification?

hi @xiangtianyu! that's ok, just add a comment in the code pointing to that semantic convention issue, and we can still merge the PR because it's under "experimental" metrics anyways

@xiangtianyu xiangtianyu requested a review from a team as a code owner November 24, 2024 02:18
@xiangtianyu
Copy link
Contributor Author

I've add comments, please take a look @breedx-splk @trask @laurit

if (openFileDescriptorCount != null) {
observables.add(
meter
.upDownCounterBuilder("process.open_file_descriptor.count")
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this name isn't exactly the same as process.open_file_descriptors that is used by the host metric receiver we might as well go with a different name. I think it would be best to discuss these names and descriptions at the SIG meeting.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, how can i propose this as a topic?

Copy link
Member

Choose a reason for hiding this comment

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

based on https://github.com/open-telemetry/semantic-conventions/pull/1618/files

as a working group we believe it is important that process namespace and runtime namespace metrics remain separate, because process metrics are meant to represent an OS-level process as the instrumentation source, whereas runtime metrics represent the language runtime as the instrumentation source.

I'd suggest using jvm.open_file_descriptor.count

Copy link
Contributor

Choose a reason for hiding this comment

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

@trask do you also have suggestions for the metric descriptions and unit. Currently the unit is {count}.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

for description, I think we can use

Number of file descriptors in use by the process.

from https://github.com/open-telemetry/semantic-conventions/blob/373a69574ec9605895102205d561b2476972e20c/model/process/metrics.yaml#L82

if (openFileDescriptorCount != null) {
observables.add(
meter
.upDownCounterBuilder("process.open_file_descriptor.count")
Copy link
Member

Choose a reason for hiding this comment

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

based on https://github.com/open-telemetry/semantic-conventions/pull/1618/files

as a working group we believe it is important that process namespace and runtime namespace metrics remain separate, because process metrics are meant to represent an OS-level process as the instrumentation source, whereas runtime metrics represent the language runtime as the instrumentation source.

I'd suggest using jvm.open_file_descriptor.count

@jaydeluca
Copy link
Member

it looks like some progress was made in semconv in this area:
open-telemetry/semantic-conventions#2139

@xiangtianyu
Copy link
Contributor Author

it looks like some progress was made in semconv in this area: open-telemetry/semantic-conventions#2139

You are right, but it seems that someone has already implemented this metric

@trask
Copy link
Member

trask commented Sep 30, 2025

@xiangtianyu should we close this PR then?

@breedx-splk breedx-splk added the needs author feedback Waiting for additional feedback from the author label Oct 1, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2025

This PR has been labeled as stale due to lack of activity and needing author feedback. It will be automatically closed if there is no further activity over the next 7 days.

@github-actions github-actions bot added the stale label Oct 8, 2025
@xiangtianyu xiangtianyu closed this Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs author feedback Waiting for additional feedback from the author stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants