Operador de OpenTelemetry para Kubernetes

Una implementación de un operador de Kubernetes, que gestiona colectores y la auto-instrumentación de la carga de trabajo usando librerías de instrumentación de OpenTelemetry.

The content of this page may be outdated and some links may be invalid. A newer version of this page exists in English.

More information ...

To see the changes to the English page since this page was last updated: visit GitHub compare 5273b533..f625496b and search for content/en/docs/platforms/kubernetes/operator/_index.md.

Introducción

El Operador de OpenTelemetry es una implementación de un operador de Kubernetes.

El operador gestiona:

Primeros pasos

Para instalar el operador en un clúster existente, asegúrate de tener cert-manager instalado y ejecuta:

kubectl apply -f https://github.com/open-telemetry/opentelemetry-operator/releases/latest/download/opentelemetry-operator.yaml

Cuando el deployment de opentelemetry-operator esté listo, en ready, crea una instancia del OpenTelemetry Collector (otelcol), con el comando siguiente:

$ kubectl apply -f - <<EOF
apiVersion: opentelemetry.io/v1beta1
kind: OpenTelemetryCollector
metadata:
  name: simplest
spec:
  config:
    receivers:
      otlp:
        protocols:
          grpc:
            endpoint: 0.0.0.0:4317
          http:
            endpoint: 0.0.0.0:4318
    processors:
      memory_limiter:
        check_interval: 1s
        limit_percentage: 75
        spike_limit_percentage: 15
      batch:
        send_batch_size: 10000
        timeout: 10s

    exporters:
      # NOTA: Antes de v0.86.0 utiliza `logging` en lugar de `debug`.
      debug: {}

    service:
      pipelines:
        traces:
          receivers: [otlp]
          processors: [memory_limiter, batch]
          exporters: [debug]
EOF

Para más opciones de configuración y para configurar la inyección de auto-instrumentación de las cargas de trabajo usando librerías de instrumentación de OpenTelemetry, consulta el Operador de OpenTelemetry para Kubernetes.


Injecting Auto-instrumentation

An implementation of auto-instrumentation using the OpenTelemetry Operator.

Horizontal Pod Autoscaling

Configure Horizontal Pod Autoscaling with your OpenTelemetry Collector

Target Allocator

A tool to distribute targets of the PrometheusReceiver on all deployed Collector instances

Troubleshooting the OpenTelemetry Operator for Kubernetes

Contains a collection of tips for troubleshooting various aspects of the OpenTelemetry Kubernetes Operator. For example, what to do when the target allocator is failing to discover scrape targets.


Última modificación October 31, 2025: Update drifted status of pages (#8303) (b20f3bd2)