open-telemetry / semantic-conventions

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

[k8s] Define semantic conventions for k8s memory metrics #1490

Open ChrsMark opened 1 month ago

ChrsMark commented 1 month ago

Area(s)

area:k8s

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

As part of the K8s SemConv stability work we need to define k8s memory metrics that are already in use by the Opentelemetry Collector.

Related to https://github.com/open-telemetry/semantic-conventions/issues/1032.

Describe the solution you'd like

The existing metrics in use that we need to define as semantic conventions are the following:

k8s.node.memory.usage: ✅ https://github.com/open-telemetry/semantic-conventions/pull/1406 container.memory.usage: ✅ https://github.com/open-telemetry/semantic-conventions/pull/282 k8s.pod.memory.usage: ✅ https://github.com/open-telemetry/semantic-conventions/pull/1406 k8s.node.memory.available k8s.node.memory.rss k8s.node.memory.working_set k8s.node.memory.page_faults k8s.node.memory.major_page_faults k8s.pod.memory.available k8s.pod.memory.node.utilization k8s.pod.memory_limit_utilization k8s.pod.memory_request_utilization k8s.pod.memory.rss k8s.pod.memory.working_set k8s.pod.memory.page_faults k8s.pod.memory.major_page_faults container.memory.available k8s.container.memory_limit_utilization k8s.container.memory_request_utilization container.memory.rss container.memory.working_set container.memory.page_faults container.memory.major_page_faults

Additional context

No response

ChrsMark commented 1 month ago

Also related to this one: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/35849