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 file descriptor metrics #11876

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants