Disponible para:
Métricas
Descripción general
Utilice el destino de Prometheus de Observability Pipelines para enviar métricas a Prometheus.
Configure el destino
Para Secrets Management: ingrese solo los identificadores de la URL del punto de conexión y, si corresponde, del nombre de usuario y la contraseña para la autorización básica, del token de portador y de la frase de contraseña de la clave TLS. No ingrese los valores reales.
Configure el destino de Prometheus cuando configure un pipeline. Puede configurar una canalización en la interfaz de usuario, 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 Prometheus en la interfaz de usuario del pipeline:
- Ingrese el identificador para su Remote Write Endpoint URL. Un ejemplo de una URL de punto de conexión a la que hace referencia el identificador:
http://localhost:9090/api/v1/write. Si deja el campo de identificador en blanco, se utiliza el predeterminado. - Seleccione su estrategia de autorización (None, Basic o Bearer). Si seleccionó:
- Basic: Ingrese el identificador para su nombre de usuario y contraseña. Si lo deja en blanco, se utiliza el predeterminado.
- Bearer: Ingrese el identificador para su token de portador. Si lo deja en blanco, se utiliza el predeterminado.
If you enter secret identifiers and then choose to use environment variables, the environment variable is the identifier entered and prepended with DD_OP_. For example, if you entered PASSWORD_1 for a password identifier, the environment variable for that password is DD_OP_PASSWORD_1.
Configuración opcional
Espacio de nombre por defecto
Ingrese el espacio de nombres predeterminado para cualquier métrica enviada. Este espacio de nombres solo se utiliza si una métrica no tiene un espacio de nombres existente. Se agrega como prefijo al nombre de la métrica, separado por un guion bajo (_). El espacio de nombres debe seguir la convención de nomenclatura de Prometheus.
Tenant ID
Ingrese el ID de inquilino para agregar a las solicitudes salientes. Este campo admite sintaxis de plantilla, pero la plantilla debe tener un prefijo literal, como prefix-{{ tenant_id }} or prefix/{{ tenant_id }}. Templates without a literal prefix, such as {{ tenant_id }}, son rechazados; el Worker registra un error y la canalización no se inicia.
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.
- (Opcional) Ingrese el nombre del servidor que se utilizará para la validación del certificado. Si se deja en blanco, se utiliza el nombre de host de la URL del punto de conexión.
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.
Permitir muestras predeterminadas
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 el receptor de escritura remota (remote write) de Prometheus rechaza las muestras fuera de orden, el Worker registra un error Bad Request (400) y todo el segundo lote de métricas se descarta, incluso si el receptor de escritura remota aceptó algunas de las métricas válidas en el lote.
Datadog recomienda configurar su receptor de escritura remota para permitir muestras fuera de orden a fin de evitar que se descarten las muestras fuera de orden.
Solución de problemas
Debug error logs
Si ve registros de error 400 o 500 de este destino, puede habilitar los registros de depuración para ver la respuesta devuelta por el servidor. Para habilitar los registros solo para este destino basado en HTTP y no para todos los módulos del Worker, establezca VECTOR_LOG en info,vector::sinks::util::http=debug:
docker run -i -e DD_API_KEY=<DATADOG_API_KEY> \
-e DD_OP_PIPELINE_ID=<PIPELINE_ID> \
-e VECTOR_LOG=info,vector::sinks::util::http=debug \
datadog/observability-pipelines-worker run
Consulte Habilitar registros de depuración para obtener instrucciones sobre cómo habilitar los registros de depuración completos.
Valores predeterminados de Secret
These are the defaults used for secret identifiers and environment variables.
- Identificador de URL del punto de conexión de Remote Write:
- Hace referencia a la URL del punto de conexión de Remote Write. Un ejemplo de una URL de punto de conexión a la que hace referencia el identificador:
http://localhost:9090/api/v1/write. - El identificador predeterminado es
DESTINATION_PROMETHEUS_REMOTE_WRITE_ENDPOINT.
- Identificador de frase de contraseña TLS de Prometheus (cuando TLS está habilitado):
- El identificador predeterminado es
DESTINATION_PROMETHEUS_REMOTE_WRITE_KEY_PASS.
- Si utiliza autenticación básica:
- Identificador de nombre de usuario de Prometheus:
- El identificador predeterminado es
DESTINATION_PROMETHEUS_REMOTE_WRITE_USERNAME.
- Identificador de contraseña de Prometheus:
- El identificador predeterminado es
DESTINATION_PROMETHEUS_REMOTE_WRITE_PASSWORD.
- Si utiliza autenticación de portador:
- Identificador de token de portador (bearer token) de Prometheus:
- El identificador predeterminado es
DESTINATION_PROMETHEUS_REMOTE_WRITE_BEARER_TOKEN.
- Prometheus endpoint URL:
- The default environment variable is
DD_OP_DESTINATION_PROMETHEUS_REMOTE_WRITE_ENDPOINT.
- Prometheus TLS passphrase (when enabled):
- The default environment variable is
DD_OP_DESTINATION_PROMETHEUS_REMOTE_KEY_PASS.
- If you are using basic authentication:
- Prometheus endpoint authentication username and password.
- The default environment variable is
DD_OP_DESTINATION_PROMETHEUS_REMOTE_USERNAME and DD_OP_DESTINATION_PROMETHEUS_REMOTE_PASSWORD.
- If you are using bearer authentication:
- Prometheus endpoint bearer token.
- The default environment variable is
DD_OP_DESTINATION_PROMETHEUS_REMOTE_BEARER_TOKEN.