opentelemetry-resourcedetector-kubernetes
An OpenTelemetry package to populates Resource attributes for Kubernetes pods
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2022-09-18, no commits since) and will receive no maintenance or updates. While it has low install friction and permissive licensing, the lack of maintenance means compatibility with current OpenTelemetry versions is uncertain and bugs will not be fixed. If you need Kubernetes resource detection for OpenTelemetry, seek an actively maintained alternative or verify this package still works with your current dependencies.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Must be running inside a Kubernetes pod; the detector will not populate meaningful attributes outside that environment.
- Low install friction with only two runtime dependencies (opentelemetry-sdk and opentelemetry-semantic-conventions).
- However, the package is abandoned—last release was 2022-09-18 with no commits since then—so expect no maintenance, bug fixes, or updates.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use it freely in commercial and private projects without copyleft obligations.
last release 2022-09-18 (1426 days) · last repo commit 2022-09-18
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,810,652 downloads/mo, #3,531 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-resourcedetector-kubernetes
from opentelemetry.sdk.resources import get_aggregated_resources
from opentelemetry_resourcedetector_kubernetes import KubernetesResourceDetector
resource = get_aggregated_resources([KubernetesResourceDetector()])- Whether the package remains compatible with current versions of opentelemetry-sdk and opentelemetry-semantic-conventions despite being unmaintained.
- Whether Kubernetes Downward API behavior or OpenTelemetry semantic conventions have changed since the last release in 2022.
What it is and what it does
This package provides resource detectors for OpenTelemetry that extract Kubernetes pod metadata and attach it to trace resources. It implements three detector classes: a base KubernetesResourceDetector that always populates container.runtime, container.id, and k8s.pod.uid; and two variants that use the Kubernetes Downward API to read additional metadata either from environment variables or from mounted volume files. You pass one of these detectors to OpenTelemetry's get_aggregated_resources() function, which returns a Resource object you then pass to a TracerProvider.
The package depends on opentelemetry-sdk and opentelemetry-semantic-conventions, and requires Python 3.8 or later. It is designed specifically for workloads running inside Kubernetes pods and will not detect meaningful metadata outside that environment. The Downward API variants require explicit configuration in your Kubernetes manifests to expose pod metadata as either environment variables or volume-mounted files.
Use it for
- Automatically tag traces with the Kubernetes pod UID and container ID for correlation in observability platforms.
- Populate k8s.namespace.name and k8s.pod.name in traces by configuring Downward API environment variables in your pod spec.
- Mount Kubernetes metadata as files and read namespace, pod name, and other attributes via the volume-based Downward API detector.
- Integrate Kubernetes pod context into OpenTelemetry traces without manual hardcoding of pod identifiers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2022-09-18, no commits since) and will receive no maintenance or updates. While it has low install friction and permissive licensing, the lack of maintenance means compatibility with current OpenTelemetry versions is uncertain and bugs will not be fixed. If you need Kubernetes resource detection for OpenTelemetry, seek an actively maintained alternative or verify this package still works with your current dependencies.
Install
opentelemetry-resourcedetector-kubernetes on PyPI
Before you install
Low install friction with only two runtime dependencies (opentelemetry-sdk and opentelemetry-semantic-conventions). However, the package is abandoned—last release was 2022-09-18 with no commits since then—so expect no maintenance, bug fixes, or updates.
Must be running inside a Kubernetes pod; the detector will not populate meaningful attributes outside that environment.
License in practice
Licensed under MIT (permissive), so you can use it freely in commercial and private projects without copyleft obligations.
Quickstart
pip install opentelemetry-resourcedetector-kubernetes
from opentelemetry.sdk.resources import get_aggregated_resources
from opentelemetry_resourcedetector_kubernetes import KubernetesResourceDetector
resource = get_aggregated_resources([KubernetesResourceDetector()])
Verify before relying
- Whether the package remains compatible with current versions of opentelemetry-sdk and opentelemetry-semantic-conventions despite being unmaintained.
- Whether Kubernetes Downward API behavior or OpenTelemetry semantic conventions have changed since the last release in 2022.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesopentelemetry-sdkopentelemetry-semantic-conventions |
| Maintenance | Abandoned 1,426 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,810,652 / month, #3,531 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 |
Evidence: opentelemetry_resourcedetector_kubernetes-0.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “kubernetes resource detector opentelemetry”
- opentelemetry-resourcedetector-kubernetesDetects and populates OpenTelemetry Resource attributes specific to…
- opentelemetry-resource-detector-containeridDetects and registers container runtime metadata (container ID, image…
- opentelemetry-resourcedetector-dockerExtracts Docker container metadata and populates OpenTelemetry…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also opentelemetry-resource-detector-containerid · opentelemetry-resourcedetector-docker · opentelemetry-resourcedetector-process · opentelemetry-container-distro · opentelemetry-resource-detector-azure · opentelemetry-sdk-extension-aws · opentelemetry-resourcedetector-gcp · opentelemetry-proto · opentelemetry-instrumentation-logging · podman