Disponible para:
Métricas
Descripción general
Utilice la fuente de Prometheus de Observability Pipelines para recibir métricas enviadas por sus clientes de Prometheus.
Configuración
Para Secrets Management: Solo ingrese los identificadores de la dirección de Prometheus y, si corresponde, del nombre de usuario y la contraseña para la autorización simple (también conocida como básica). No ingrese los valores reales.
Configure esta fuente cuando configure una canalización. Puede configurar una canalización en la interfaz de usuario, 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 de Prometheus en la interfaz de usuario del pipeline:
- Ingrese el identificador para su dirección de Prometheus. Un ejemplo de la dirección de socket a la que hace referencia el identificador:
0.0.0.0:9091. Si deja el campo de identificador en blanco, se utiliza el predeterminado. - Ingrese la ruta de la URL en la que se aceptan las solicitudes POST de métricas, como
/api/v1/write. - Seleccione su estrategia de autorización. Si seleccionó Plain:
- Ingrese los identificadores para su nombre de usuario y contraseña de Prometheus. Si los deja en blanco, se utilizan los predeterminados.
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
Si almacena tokens como credenciales en el encabezado de autorización de su cliente de Prometheus, puede configurar el Worker para verificar si las solicitudes entrantes tienen un token válido. Los eventos de solicitud que no tienen un token válido se descartan. El Worker también puede buscar una ruta de un punto de conexión o una dirección IP en lugar de un encabezado. Solo puede configurar tokens de autenticación cuando la estrategia de autorización está establecida en None.
To configure authentication tokens, enable the Configure authentication tokens toggle:
- Click Manage Tokens and then Add Token.
- Enter the identifier for your token key.
Note: If you are using environment variables, the environment variable for this token is the identifier you entered prepended with DD_OP_. - (Optional) Enter a field and value if you want to add additional information to logs that are successfully authenticated with this specific token.
- Select the path to the token in the Path to Token dropdown menu:
- Header for a custom header or an authorization header, such as
"Authorization: Basic ABCDEF1234567=".- Optionally, enter the header name. Note: The header name is case insensitive.
- Address for an IP address.
- Path for an endpoint path.
Para configurar los ajustes de keepalive para las conexiones a la fuente, habilite el interruptor Configure keepalive:
- Max connection age: El número máximo de segundos después del cual se cierra una conexión. El valor predeterminado es
300 segundos. - Max connection age jitter factor: El factor utilizado para aleatorizar la duración máxima de la conexión, de modo que las conexiones no se cierren todas simultáneamente. El valor predeterminado es
0.1.
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.
- (Optional) Toggle Verify certificate to require connecting clients to present a valid client certificate. This enforces mutual TLS (mTLS), where the Worker verifies the identity of each connecting client.
Valores predeterminados de Secret
These are the defaults used for secret identifiers and environment variables.
- Identificador de dirección de Prometheus:
- Hace referencia a la dirección del socket en la que Observability Pipelines Worker escucha las métricas de Prometheus. Un ejemplo de la dirección del socket a la que hace referencia el identificador:
0.0.0.0:9091. - El identificador predeterminado es
SOURCE_PROMETHEUS_REMOTE_WRITE_ADDRESS.
- Si utiliza autenticación simple:
- Identificador de nombre de usuario de Prometheus:
- El identificador predeterminado es
SOURCE_PROMETHEUS_REMOTE_WRITE_USERNAME.
- Identificador de contraseña de Prometheus:
- El identificador predeterminado es
SOURCE_PROMETHEUS_REMOTE_WRITE_PASSWORD.
- Prometheus address:
- The Observability Pipelines Worker listens on this socket address, such as
0.0.0.0:9091, for metrics pushed by your Prometheus clients. - The default environment variable is
DD_OP_SOURCE_PROMETHEUS_REMOTE_WRITE_ADDRESS.
- If you are using plain authentication:
- Prometheus endpoint authentication username:
- The default environment variable is
DD_OP_SOURCE_PROMETHEUS_REMOTE_WRITE_USERNAME.
- Prometheus endpoint authentication password:
- The default environment variable is
DD_OP_SOURCE_PROMETHEUS_REMOTE_WRITE_PASSWORD.