Disponible para:
Registros
|
Métricas
Descripción general
Utilice la fuente del Datadog Agent de Observability Pipelines para recibir registros o métricas del Datadog Agent.
Notas:
- Si está utilizando el Collector del Agent, el OpenTelemetry Collector que se ejecuta junto al Datadog Agent como un proceso independiente, para recopilar registros o métricas, debe usar la fuente de OpenTelemetry para enviar esos datos a Observability Pipelines.
- El Datadog Agent envía registros y métricas etiquetados con
ddsource y ddtags, no con source y tags. Cuando defina consultas o filtros de procesador para estos eventos, utilice ddsource y ddtags en su lugar.
Requisitos previos
You already have the Datadog Agent installed to collect and route your logs and/or metrics to Datadog. If you do not have Datadog Agents set up, see the Datadog Agent documentation for more information.
You have the following information available:
Configuración
Para la gestión de secretos: solo ingrese el identificador para la dirección del Datadog Agent y, si corresponde, la frase de contraseña de la clave TLS.
No ingrese los valores reales. Consulte
Secrets Management para obtener instrucciones de configuración.
Configure esta fuente cuando configure una canalización. Puede configurar un pipeline en la UI, utilizando la API o con Terraform. Las instrucciones de esta sección son para configurar la fuente en la interfaz de usuario.
Después de seleccionar la fuente del Datadog Agent en la UI de la canalización, ingrese el identificador para su dirección del Datadog Agent. Este identificador hace referencia a la dirección de enlace en la que el Worker escucha las conexiones entrantes del Agent, como <OPW_HOST>:8282. Si deja el campo de identificador 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 de 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.
Valores predeterminados de Secret
These are the defaults used for secret identifiers and environment variables.
- Identificador de dirección del Datadog Agent:
- Hace referencia a la dirección de enlace en la que Observability Pipelines Worker escucha para recibir registros del Datadog Agent.
- El identificador predeterminado es
SOURCE_DATADOG_AGENT_ADDRESS.
- Identificador de frase de contraseña TLS del Datadog Agent (cuando TLS está habilitado):
- El identificador predeterminado es
SOURCE_DATADOG_AGENT_KEY_PASS.
- Datadog Agent address:
- The Observability Pipelines Worker listens to this socket address to receive logs from the Datadog Agent.
- The default environment variable is
DD_OP_SOURCE_DATADOG_AGENT_ADDRESS.
- Datadog Agent TLS passphrase (when enabled):
- The default environment variable is
DD_OP_SOURCE_DATADOG_AGENT_KEY_PASS.
Conecte el Datadog Agent al Observability Pipelines Worker
Utilice el archivo de configuración del Agent o el archivo de valores del gráfico de Helm del Agent para conectar el Datadog Agent al Observability Pipelines Worker.
Nota: Si su Agent se está ejecutando en un contenedor Docker, debe excluir los registros de Observability Pipelines utilizando la variable de entorno DD_CONTAINER_EXCLUDE_LOGS. Para Helm, utilice datadog.containerExcludeLogs. Esto evita registros duplicados, ya que el Worker también envía sus propios registros directamente a Datadog. Consulte Colección de registros de Docker o Configuración de variables de entorno para obtener más información.
To send Datadog Agent logs to the Observability Pipelines Worker, update your Agent configuration file with the following:
observability_pipelines_worker:
logs:
enabled: true
url: "http://<OPW_HOST>:8282"
<OPW_HOST> is the host IP address or the load balancer URL associated with the Observability Pipelines Worker.
For CloudFormation installs, use the LoadBalancerDNS CloudFormation output for the URL.
For Kubernetes installs, you can use the internal DNS record of the Observability Pipelines Worker service. For example: http://opw-observability-pipelines-worker.default.svc.cluster.local:<PORT>.
Optionally, to ensure host tags are included in your logs, add the following to your Agent configuration file:
logs_config:
expected_tags_duration: "1000000m"
expected_tags_duration ensures the Agent attaches host-level tags (such as EC2 instance tags) directly to each log event sent to Observability Pipelines. Without this setting, these tags are applied at the Datadog intake level and are not present in the log payload when it passes through Observability Pipelines. Setting the duration to 1000000m (approximately 1.5 years) covers the standard lifecycle of a node. Note that tags may increase the size of your log.
After you restart the Agent, your observability data should be going to the Worker, processed by the pipeline, and delivered to Datadog.
To send Datadog Agent logs to the Observability Pipelines Worker, update your Datadog Helm chart datadog-values.yaml with the following environment variables. See Agent Environment Variables for more information.
datadog:
env:
- name: DD_OBSERVABILITY_PIPELINES_WORKER_LOGS_ENABLED
value: true
- name: DD_OBSERVABILITY_PIPELINES_WORKER_LOGS_URL
value: "http://<OPW_HOST>:8282"
<OPW_HOST> is the IP/URL of the host (or load balancer) associated with the Observability Pipelines Worker.
For Kubernetes installs, you can use the internal DNS record of the Observability Pipelines Worker service. For example: http://opw-observability-pipelines-worker.default.svc.cluster.local:<PORT>.
Optionally, to ensure host tags are included in your logs, add the following to your Agent configuration file:
- name: DD_LOGS_CONFIG_EXPECTED_TAGS_DURATION
value: "1000000m"
DD_LOGS_CONFIG_EXPECTED_TAGS_DURATION ensures the Agent attaches host-level tags (such as EC2 instance tags) directly to each log event sent to Observability Pipelines. Without this setting, these tags are applied at the Datadog intake level and are not present in the log payload when it passes through Observability Pipelines. Setting the duration to 1000000m (approximately 1.5 years) covers the standard lifecycle of a node. Note that tags may increase the size of your log.
Utilice el archivo de configuración del Agent o el archivo de valores del gráfico de Helm del Agent para conectar el Datadog Agent al Observability Pipelines Worker.
Nota: Si su Agent se está ejecutando en un contenedor de Docker, debe excluir las métricas de Observability Pipelines, como las métricas de utilización y de eventos de entrada/salida, usando la variable de entorno DD_CONTAINER_EXCLUDE_METRICS. Para Helm, utilice datadog.containerExcludeMetrics. Esto evita métricas duplicadas, ya que el Worker también envía sus propias métricas directamente a Datadog. Consulte Recopilación de métricas de Docker o Configuración de variables de entorno para Helm para obtener más información.
Para enviar métricas del Datadog Agent al Observability Pipelines Worker, actualice su archivo de configuración del Agent con lo siguiente:
observability_pipelines_worker:
metrics:
enabled: true
url: "http://<OPW_HOST>:8383"
<OPW_HOST> es la dirección IP del servidor o la URL del balanceador de carga asociada con el Observability Pipelines Worker.
- Para instalaciones de CloudFormation, use la salida
LoadBalancerDNS de CloudFormation para la URL. - Para instalaciones de Kubernetes, puede usar el registro DNS interno del servicio de Observability Pipelines Worker. Por ejemplo:
http://opw-observability-pipelines-worker.default.svc.cluster.local:<PORT>.
Nota: Si el Worker está escuchando registros en el puerto 8282, debe usar otro puerto para las métricas, como el 8383.
Después de reiniciar el Agent, sus datos de observabilidad se envían al Worker, son procesados por el pipeline y entregados a Datadog.
Para enviar métricas del Datadog Agent al Observability Pipelines Worker, actualice su archivo datadog-values.yaml del chart de Helm de Datadog con las siguientes variables de entorno. Consulte Variables de entorno del Agent para obtener más información.
datadog:
env:
- name: DD_OBSERVABILITY_PIPELINES_WORKER_METRICS_ENABLED
value: true
- name: DD_OBSERVABILITY_PIPELINES_WORKER_METRICS_URL
value: "http://<OPW_HOST>:8383"
<OPW_HOST> es la dirección IP del servidor o la URL del balanceador de carga asociada con el Observability Pipelines Worker.
Para instalaciones de Kubernetes, puede usar el registro DNS interno del servicio de Observability Pipelines Worker. Por ejemplo: http://opw-observability-pipelines-worker.default.svc.cluster.local:<PORT>.
Nota: Si el Worker está escuchando registros en el puerto 8282, debe usar otro puerto para las métricas, como el 8383.
Lecturas adicionales
Documentación, enlaces y artículos útiles adicionales: