-
Notifications
You must be signed in to change notification settings - Fork 897
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 semantic conventions for process metrics #2061
Conversation
Some additional context: we need to use this in 2 places right now:
Sadly 1 and 2 emit the process metrics in somewhat different ways (different metric names, different attributes, see Dan's comparison). We need to make this part of the spec and follow it ourselves. |
💯 |
Do we also need to make the "process id" an attribute for all process metrics? |
It looks like it is already defined as a resource attribute. |
Right! |
@tigrannajaryan I misunderstood your point. I think you are suggesting we should explicitly state the requirement in this document. I'll add this! |
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.
It seems to me that the process collector + the general naming conventions for metrics don't really line up. If we're going to create semconv, we should figure out how to line up with those naming conventions or purposefully deviate.
I'm not sure what you're saying here. Are you saying that the proposed metric names don't line up with general naming conventions? (Certainly there are some metrics within the collector that do not, but those will be changed based on the outcome of this PR.) |
Yes, the proposed names don't line up. See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/semantic_conventions/README.md#general-metric-semantic-conventions |
I tried to follow those guidelines as closely as possible, but I don't think they cover every scenario or generalize well enough to be taken as clear rules in all cases. Here's how I'm looking at each of the proposed names. I'm happy to reconsider but you'll have to be more specific. Clearly following the guidelines:
Naming guidelines appear to contradict aggregation rule of thumb:
I took it for granted that uptime is a special case, but the naming guidelines suggest this should be
There's an open question here about whether there is an issue with the root namespace. Otherwise, it's not clear to me how these go against the naming guidelines.
|
Yeah, I found this last week but didn't get a chance to open a bug on it.
I'll try to be less lazy (more clear) in my objections going forward. I'm only objecting to the physical vs. virtual usage. I think you could mark an argument that "limit" doesn't make sense for virtual usage but does for physical, so they need to be called out and I could by that (and would want that decision recorded somewhere for all time). If |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
7ae4c6a
to
1584ca7
Compare
@jsuereth I've renamed the memory metrics, so that physical memory is clearly described as a |
@open-telemetry/specs-approvers please review. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
@open-telemetry/specs-approvers please review. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
@open-telemetry/specs-metrics-approvers please review. |
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.
Just one minor nit remaining.
@djaglowski please resolve any comments that are addressed. If none are remaining we can start the countdown to merge the PR. @open-telemetry/specs-approvers please review. |
This has enough approvals and the last change was more than 2 days ago, this is good to merge. @djaglowski please rebase from main so that we can merge. |
b9b1676
to
dfd8db7
Compare
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
@djaglowski please resolve the conflicts and ping me to merge. |
@tigrannajaryan, should be good to go. |
Resolves open-telemetry#1817 Prerequisite for [(collector) open-telemetry#4232](open-telemetry/opentelemetry-collector#4232)
Changes
Adds semantic conventions for process metrics
Resolves #1817
Prerequisite for (collector) #4232
Notes
I would appreciate perspectives on
process.cpu.time
, in regards to nuances described here.