semantic-conventions icon indicating copy to clipboard operation
semantic-conventions copied to clipboard

k8s: new attributes: CSI driver and volume handle

Open gdvalle opened this issue 1 year ago • 3 comments
trafficstars

Area(s)

Semantic convention for otelcol's kubeletstatsreceiver, area:k8s.

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

In k8s, I would like to record CSI driver and volume handle information for relevant Persistent Volume Claims (PVCs) to be able to associate metrics to underlying disks.

Describe the solution you'd like

Two new attributes, with each mapping 1:1 to the respective driver/volumeHandle fields in CSIPersistentVolumeSource:

  • csi.driver
  • csi.volume.handle

And a new value for the k8s.volume.type attribute, csiPersistentVolume.

Describe alternatives you've considered

None

Additional context

This grew from https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/32055

gdvalle avatar Jun 03 '24 18:06 gdvalle

/cc @open-telemetry/semconv-k8s-approvers

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

ChrsMark avatar Jun 12 '24 08:06 ChrsMark

There is no semantic convention for the k8s.volume.type. https://github.com/open-telemetry/semantic-conventions/issues/1164 will add this.

ChrsMark avatar Jul 15 '24 10:07 ChrsMark

I removed this from the system semantic conventions WG since this WG does not handle Kubernetes-related semantic conventions

mx-psi avatar Jul 25 '24 14:07 mx-psi