open-telemetry / semantic-conventions

Defines standards for generating consistent, accessible telemetry across a variety of domains
Apache License 2.0
244 stars 158 forks source link

Need a new metric process.open_file_descriptor.max or process.open_file_descriptor.limit #1275

Open xiangtianyu opened 1 month ago

xiangtianyu commented 1 month ago

Area(s)

area:jvm, area:os, area:system

Is your change request related to a problem? Please describe.

Now we have a metric process.open_file_descriptor.count https://github.com/open-telemetry/semantic-conventions/blob/main/docs/system/process-metrics.md#metric-processopen_file_descriptorcount

since jdk provided both getMaxFileDescriptorCount and getOpenFileDescriptorCount https://github.com/eclipse-openj9/openj9/blob/9d6010511102076fb18bfcfe2b3609c4fb9c94f6/jcl/src/jdk.management/share/classes/com/ibm/lang/management/UnixOperatingSystemMXBean.java#L31 We may need a new metric.

Describe the solution you'd like

We may need a new metrics like process.open_file_descriptor.max or process.open_file_descriptor.limit

Describe alternatives you've considered

No response

Additional context

No response