$npx skillfedfor your agent

opentelemetry-resourcedetector-kubernetes

An OpenTelemetry package to populates Resource attributes for Kubernetes pods

SkipPyPI MonitoringReleased Sep 20221.8M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — opentelemetry_resourcedetector_kubernetes-0.3.0-py3-none-any.whl
v0.3.0 · released 2022-09-18 · Python >=3.8 · 2 runtime deps: opentelemetry-sdk, opentelemetry-semantic-conventions

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

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.
Same gist for agents: .md · .json

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.

Skip

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

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
opentelemetry-sdkopentelemetry-semantic-conventions
MaintenanceAbandoned 1,426 days since the last release
Last repo commit
First released
Downloads1,810,652 / month, #3,531 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
kubernetes resource detector opentelemetryk8s pod attributes tracingopentelemetry kubernetes metadatacontainer resource detectionkubernetes downward api telemetrypod uid namespace detectionotel k8s resource attributes
Topics
kubernetesobservabilityabandoned

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

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