-
Notifications
You must be signed in to change notification settings - Fork 678
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
opentelemetry-instrumentation-system-metrics: add process metrics #3250
Conversation
Add process metrics as of 1.30.0 semconv to the system metrics instrumentation. We still keep around the old process.runtime metrics because the semconv suggest to not break current users. Still discourage their use in the doc and state explicitly they are deprecated.
...-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py
Outdated
Show resolved
Hide resolved
...-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py
Outdated
Show resolved
Hide resolved
...-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py
Show resolved
Hide resolved
...-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py
Show resolved
Hide resolved
instrumentation/opentelemetry-instrumentation-system-metrics/tests/test_system_metrics.py
Outdated
Show resolved
Hide resolved
...-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Not sure when semantic conventions for system-metrics will change from experimental to stable, so we'll need to keep process.runtime
for a while
...-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py
Show resolved
Hide resolved
...-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py
Show resolved
Hide resolved
...-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py
Outdated
Show resolved
Hide resolved
"process.memory.usage": None, | ||
"process.memory.virtual": None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I correct that these two combine to replace "process.runtime.memory": ["rss", "vms"],
?
"process.memory.usage": None, | ||
"process.memory.virtual": None, | ||
"process.open_file_descriptor.count": None, | ||
"process.thread.count": None, | ||
"process.runtime.memory": ["rss", "vms"], | ||
"process.runtime.cpu.time": ["user", "system"], | ||
"process.runtime.gc_count": None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't be deprecated, right?
@@ -112,13 +126,19 @@ | |||
"system.network.io": ["transmit", "receive"], | |||
"system.network.connections": ["family", "type"], | |||
"system.thread_count": None, | |||
"process.context_switches": ["involuntary", "voluntary"], | |||
"process.cpu.time": ["user", "system"], | |||
"process.cpu.utilization": ["user", "system"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are there config values here?
Description
Add process metrics as of 1.30.0 semconv to the system metrics instrumentation. We still keep around the old process.runtime metrics because the semconv suggest to not break current users. Still discourage their use in the doc and state explicitly they are deprecated.
Fixes #2662
Closes #2727
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.