-
Notifications
You must be signed in to change notification settings - Fork 175
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 container.cpu.usage metric #1128
Add container.cpu.usage metric #1128
Conversation
8f91fc8
to
05df82b
Compare
15e0e08
to
dab7f82
Compare
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
@open-telemetry/semconv-k8s-approvers @open-telemetry/semconv-container-approvers @open-telemetry/specs-semconv-approvers could you take a look? |
@open-telemetry/specs-semconv-approvers since there are quite a few approvals by the k8s/container approvers can we move this one forward? |
Thank's @joaopgrassi! My only concern is about #1128 (comment). Does this look normal? |
1e096e9
to
d968090
Compare
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.
Please fix anchor name and this PR should be good to go.
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Co-authored-by: Helen <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Co-authored-by: Pablo Baeyens <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
70dd573
to
9c12ac1
Compare
Related to #1032
Changes
This PR adds the
container.cpu.usage
metric.This metric is implemented by the
kubeletstats
receiver.This value comes from the
stats/summary
endpoint of Kubelet and its calculated at https://github.com/kubernetes/kubernetes/blob/v1.30.0/pkg/kubelet/stats/cri_stats_provider.go#L791-L800.It's not implemented by the
dockerstats
receiver but that would be doable with something similar to https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.102.0/receiver/dockerstatsreceiver/metric_helper.go#L30, using the formula from the Kubelet's stats mentioned above.ref: https://docs.docker.com/engine/api/v1.45/#tag/Container/operation/ContainerStats
Merge requirement checklist
[chore]
/cc @open-telemetry/semconv-container-approvers @open-telemetry/semconv-k8s-approvers