Google Pub/Sub 소스

이용 가능:

로그

개요

Observability Pipelines의 Google Pub/Sub 소스를 사용하여 Google Cloud Pub/Sub 메시징 시스템에서 로그를 가져오세요.

전제 조건

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.

설정

파이프라인을 설정할 때 이 소스를 설정하세요. Pipelines는 UI에서 설정할 수 있으며, API 또는 Terraform을 통해 설정할 수 있습니다. 이 섹션의 지침은 UI에서 소스를 설정하기 위한 것입니다.

Pipelines UI에서 Google Pub/Sub 소스를 선택한 후:

  1. 소스 프로젝트의 이름을 입력하세요.
  2. 자격 증명 JSON 파일이 있는 경우 해당 파일의 경로를 입력합니다. 자격 증명 파일은 DD_OP_DATA_DIR/config 아래에 배치해야 합니다. 또는 GOOGLE_APPLICATION_CREDENTIALS 환경 변수를 사용하여 자격 증명 경로를 제공할 수 있습니다.
    • Google Kubernetes Engine (GKE)에서 [workload identity]를 사용하는 경우 GOOGLE_APPLICATION_CREDENTIALS가 자동으로 제공됩니다.
    • Worker는 표준 Google 인증 방식을 사용합니다.
  3. 구독 이름을 입력하세요.
  4. 사용할 디코더 (Bytes, GELF, JSON, syslog)를 선택하세요.

선택 사항 TLS 설정

시크릿 관리의 경우 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.
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.

시크릿 기본값

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

이 소스에 대한 기본 비밀 식별자는 없습니다.

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

상태 메트릭

모든 소스에서 내보내는 구성 요소 메트릭 및 소스 버퍼 메트릭은 Pipelines 사용량 메트릭 설명서를 참조하세요. Google Pub/Sub 소스 메트릭을 필터링하거나 그룹화하려면 태그 component_type:gcp_pubsub를 지정하세요.