개요
Observability Pipelines의 Prometheus 소스를 사용하여 Prometheus 클라이언트가 푸시하는 메트릭을 수신하십시오.
설정
Secrets Management의 경우: Prometheus 주소의 식별자만 입력하고, 해당하는 경우 일반(기본) 인증을 위한 사용자 이름 및 비밀번호의 식별자만 입력하십시오. 실제 값을 입력하지 마세요.
파이프라인을 설정할 때 이 소스를 설정하세요. 파이프라인은 UI, API 또는 Terraform을 사용하여 설정할 수 있습니다. 이 섹션의 지침은 UI에서 소스를 설정하기 위한 것입니다.
pipeline UI에서 Prometheus 소스를 선택한 후:
- Prometheus 주소의 식별자를 입력하십시오. 식별자가 참조하는 소켓 주소의 예:
0.0.0.0:9091. 식별자 필드를 비워 두면 기본값이 사용됩니다. - 메트릭 POST 요청이 허용되는 URL 경로를 입력하십시오(예:
/api/v1/write). - 인증 방식을 선택합니다. Plain을 선택한 경우:
- Prometheus 사용자 이름과 비밀번호의 식별자를 입력하십시오. 비워두면 기본값이 사용됩니다.
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.
선택적 설정
Prometheus 클라이언트의 인증 헤더에 토큰을 자격 증명으로 저장하는 경우, Worker가 들어오는 요청에 유효한 토큰이 있는지 검사하도록 구성할 수 있습니다. 유효한 토큰이 없는 요청 이벤트는 삭제됩니다. Worker는 헤더 대신 엔드포인트 경로 또는 IP 주소를 조회할 수도 있습니다. 인증 전략이 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.
소스에 대한 연결의 keepalive 설정을 구성하려면 Configure keepalive 토글을 활성화하십시오:
- Max connection age: 연결이 닫히기까지의 최대 시간(초)입니다. 기본값은
300초입니다. - Max connection age jitter factor: 모든 연결이 동시에 닫히지 않도록 최대 연결 수명을 무작위화하는 데 사용되는 계수입니다. 기본값은
0.1입니다.
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.
시크릿 기본값
These are the defaults used for secret identifiers and environment variables.
- Prometheus 주소 식별자:
- Observability Pipelines Worker가 Prometheus 메트릭을 수신하는 소켓 주소를 참조합니다. 식별자가 참조하는 소켓 주소의 예:
0.0.0.0:9091. - 기본 식별자는
SOURCE_PROMETHEUS_REMOTE_WRITE_ADDRESS입니다.
- 일반 인증을 사용하는 경우:
- Prometheus 사용자 이름 식별자:
- 기본 식별자는
SOURCE_PROMETHEUS_REMOTE_WRITE_USERNAME입니다.
- Prometheus 비밀번호 식별자:
- 기본 식별자는
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.