Registry / observability / open-telemetry-opentelemetry-collector-contrib-processor-k8sprocessor

open-telemetry-opentelemetry-collector-contrib-processor-k8sprocessor

JSON →
library0.36.0gogounverified

A processor for the OpenTelemetry Collector that enriches telemetry data with Kubernetes metadata.

go get github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sprocessor
INSTALL
IMPORT
SIG · OPEN-TELEMETRY-OPE
O
open-telemetry-opentelemetry-collector-contrib-processor-k8sprocessor
observabilitygov0.36.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

k8sprocessor
github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sprocessor

Create a default configuration for the K8s processor.

package main import ( "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/confmap" "github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sprocessor" ) func main() { cfg := k8sprocessor.CreateDefaultConfig().(*k8sprocessor.Config) // Configure and use the processor _ = cfg }
Debug
Known issues
gotchaRequires RBAC permissions to access Kubernetes API
fix
Ensure the collector's service account has appropriate RBAC roles (e.g., get, list, watch for pods).
affects: >=0.36.0
Upgrade
Version history
0.36.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
10
OpenAI (training)
3
Amazon
1
Resources
open-telemetry-opentelemetry-collector-contrib-processor-k8sprocessor — go get open-telemetry-opentelemetry-collector-contrib-processor-k8sprocessor · libregistry