Disponible para:

Registros

Descripción general

Utilice la fuente de Google Pub/Sub de Observability Pipelines para extraer registros del sistema de mensajería de Google Cloud Pub/Sub.

Requisitos previos

To use Observability Pipelines’ Google Pub/Sub source, you need the following information available:

  • The Google Pub/Sub source requires a Pub/Sub subscription.
  • The Worker uses standard Google authentication methods. See Authentication methods at Google for more information about choosing the authentication method for your use case.
  • Use roles/pubsub.subscriber for the Pub/Sub IAM role. See Available Pub/Sub roles for more information.

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 de Google Pub/Sub en la pipeline UI:

  1. Ingrese el nombre del proyecto fuente.
  2. Si tiene un archivo JSON de credenciales, ingrese la ruta a su archivo JSON de credenciales. El archivo de credenciales debe colocarse en DD_OP_DATA_DIR/config. Alternativamente, puede usar la variable de entorno GOOGLE_APPLICATION_CREDENTIALS para proporcionar la ruta de la credencial.
    • Si está utilizando workload identity en Google Kubernetes Engine (GKE), el GOOGLE_APPLICATION_CREDENTIALS se proporciona para usted.
    • El Worker utiliza los [Google authentication methods] estándar.
  3. Ingrese el nombre de la suscripción.
  4. Seleccione el decodificador que desea utilizar (Bytes, GELF, JSON, syslog).

Configuración de TLS opcional

Para la administración de secretos: solo ingrese el identificador de la frase de contraseña de la clave TLS. No ingrese el valor real.

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.
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.

Valores predeterminados de Secret

These are the defaults used for secret identifiers and environment variables.

No hay identificadores de secreto predeterminados para esta fuente.

There are no environment variables for the Google Pub/Sub source.

Métricas de salud

Para métricas de componente y métricas de búfer de fuente emitidas por todas las fuentes, consulte la documentación de Pipelines Usage Metrics. Para filtrar o agrupar por métricas de fuente de Google Pub/Sub, utilice la etiqueta component_type:gcp_pubsub.