Destino de métricas de OpenTelemetry
Disponible para:
Métricas
Descripción general
Utilice el destino OpenTelemetry de Observability Pipelines para enviar métricas a través de HTTP/S a un colector de OpenTelemetry (OTel) u otro punto de conexión compatible con el protocolo OpenTelemetry (OTLP).
Configure el destino
Para Secrets Management: ingrese solo el identificador de HTTP/S Client URI y, si corresponde, la frase de contraseña de la clave TLS. No ingrese los valores reales.
Configure el destino de OpenTelemetry cuando configure un pipeline. Puede configurar un pipeline en la UI, utilizando la API o con Terraform. Los pasos de esta sección se configuran en la interfaz de usuario.
Después de seleccionar el destino de OpenTelemetry en la interfaz de usuario del pipeline, ingrese el identificador de HTTP/S Client URI. Un ejemplo del punto de conexión URI HTTP/S al que hace referencia el identificador: http://localhost:4319/v1/metrics. Si deja el campo de identificador en blanco, se utiliza el predeterminado.
Notas:
- El Worker solo puede enviar métricas de contador, gauge y histograma a OpenTelemetry. OpenTelemetry no admite otros tipos de métricas, por lo que el Worker las descarta. Consulte Filtrar métricas no admitidas para obtener más información.
- Datadog recomienda configurar su receptor OTLP para permitir muestras fuera de orden, ya que el Worker no reordena las métricas y algunos receptores OTLP rechazan las muestras fuera de orden. Consulte Permitir muestras fuera de orden para obtener más información.
- Si ingresa identificadores de secretos y luego elige usar variables de entorno, la variable de entorno es el identificador ingresado con
DD_OP_ antepuesto. Por ejemplo, si ingresó PASSWORD_1 para un identificador de contraseña, la variable de entorno para esa contraseña es DD_OP_PASSWORD_1.
Configuración opcional
Habilitar TLS
Toggle the switch to Enable TLS.
- If you are using Secrets Management, enter the identifier for the key pass. See Secret defaults for the default used if the field is left blank.
- Enter the following certificate and key files:
Server Certificate Path: The path to the certificate file that has been signed by your Certificate Authority (CA) root file in DER, PEM, or CRT (X.509).- (Optional)
CA Certificate Path: The path to the certificate file that is your Certificate Authority (CA) root file in DER, PEM, or CRT (X.509). - (Optional)
Private Key Path: The path to the .key private key file that belongs to your Server Certificate Path in DER, PEM, or CRT (PKCS #8) format. - Notes:
- The configuration data directory
/var/lib/observability-pipelines-worker/config/ is automatically appended to the file paths. See Advanced Worker Configurations for more information. - The file must be readable by the
observability-pipelines-worker group and user.
Almacenamiento en búfer
Toggle the switch to enable Buffering Options. Enable a configurable buffer on your destination to ensure intermittent latency or an outage at the destination doesn’t create immediate backpressure, and allow events to continue to be ingested from your source. Disk buffers can also increase pipeline durability by writing data to disk, ensuring buffered data persists through a Worker restart. See Destination buffers for more information.
- If left unconfigured, your destination uses a memory buffer with a capacity of 500 events.
- To configure a buffer on your destination:
- Select the buffer type you want to set (Memory or Disk).
- Enter the buffer size and select the unit.
- Maximum memory buffer size is 128 GB.
- Maximum disk buffer size is 5 TB.
- Note: For Worker versions 2.20.x and older, the maximum disk buffer size is 500 GB.
- In the Behavior on full buffer dropdown menu, select whether you want to block events or drop new events when the buffer is full.
Filtrar métricas no admitidas
El Worker solo puede enviar métricas de contador, gauge y histograma a OpenTelemetry. Las siguientes métricas de Datadog no son compatibles porque no se pueden convertir al formato OTLP:
- Métricas de tipo StatsD
- Métricas de distribución
- Métricas de sketch
Si una de estas métricas se encuentra en un lote que se va a codificar y enviar a OpenTelemetry, el Worker descarta la métrica no admitida, registra un error y actualiza la métrica component_error_total. Datadog recomienda usar un procesador de filtros para filtrar los tipos de métricas no admitidos.
Permitir muestras fuera de orden
El Worker no siempre envía las métricas en el orden correcto para una serie determinada porque no reordena las métricas. Por ejemplo, si el primer lote de métricas contiene métricas con marcas de tiempo: 10:03, 10:04, 10:05 y el segundo lote contiene métricas con marcas de tiempo: 10:01, 10:02, 10:06, el Worker no reordena esas métricas antes de enviarlas.
Debido a que algunos receptores OTLP, como el receptor OTLP de Prometheus, rechazan las muestras fuera de orden, el segundo lote de métricas es rechazado por el receptor. Como resultado, el Worker registra un error Bad Request (400) y se descarta todo el lote rechazado, incluso si el receptor OTLP aceptó algunas de las métricas válidas del lote.
Datadog recomienda configurar su receptor OTLP para permitir muestras fuera de orden a fin de evitar que se descarten las muestras fuera de orden.
Valores predeterminados de Secret
These are the defaults used for secret identifiers and environment variables.
- Identificador del punto de conexión HTTP/S Client URI
- Hace referencia al punto de conexión URI HTTP/S al que el Worker envía datos de OpenTelemetry. Un ejemplo del punto de conexión URI HTTP/S al que hace referencia el identificador:
http://localhost:4319/v1/metrics. - El identificador predeterminado es
DESTINATION_OTEL_HTTP_CLIENT_URI.
- Identificador de frase de contraseña TLS del cliente HTTP/S (cuando TLS está habilitado):
- El identificador predeterminado es
DESTINATION_OTEL_HTTP_CLIENT_KEY_PASS.
- HTTP/S client URI endpoint, such as
http://localhost:4319/v1/metrics:- The HTTP/S URI endpoint to which the Worker sends OpenTelemetry data.
- The default environment variable is
DD_OP_DESTINATION_OTEL_HTTP_CLIENT_URI.
- HTTP/S Client TLS passphrase (when enabled):
- The default environment variable is
DD_OP_DESTINATION_OTEL_HTTP_CLIENT_KEY_PASS.
Métricas de salud
Consulte Métricas de componentes y Métricas de búfer de destino para obtener más información sobre las métricas emitidas por todos los destinos. Para filtrar o agrupar por métricas de destino de OpenTelemetry, utilice la etiqueta component_type:opentelemetry.
Cómo funciona el destino
Procesamiento por lotes de eventos
Un lote de eventos se vacía cuando ocurre una de estas condiciones. Consulte procesamiento por lotes de eventos para obtener más información.
| Máximo de eventos | Tamaño máximo (MB) | Tiempo de espera (segundos) |
|---|
| N/A | 10 | 1 |