-
Notifications
You must be signed in to change notification settings - Fork 174
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 <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Co-authored-by: Helen <56097766+heyams@users.noreply.github.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
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