LinkMesh

Search docs, blog and changelog

ENDE

Snippets

OpenTelemetry Collector configs for Kubernetes (8)

On Kubernetes the collector usually runs twice: as a DaemonSet on every node for pod logs and kubelet metrics, and as a single deployment for cluster-level metrics and events. Both need the right RBAC and the right pod metadata on every record.

The configs below cover pod logs, cluster, kubelet and cAdvisor metrics, Kubernetes events and k8sattributes enrichment, each as a validated file. For the RBAC and association details of k8sattributes, and for how the layers fit together, see the two guides linked here.