Fargate의 Kubernetes에 있는 기존 Prometheus 서버에서의 수집 설정 - Amazon Managed Service for Prometheus

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

Fargate의 Kubernetes에 있는 기존 Prometheus 서버에서의 수집 설정

Amazon Managed Service for Prometheus는 Fargate에서 실행되는 자체 관리형 Kubernetes 클러스터의 Prometheus 서버의 지표 수집을 지원합니다. Fargate에서 실행되는 Amazon EKS 클러스터의 Prometheus 서버에서 지표를 수집하려면 다음과 같이 amp_ingest_override_values.yaml이라는 구성 파일의 기본 구성을 재정의하세요.

prometheus-node-exporter: enabled: false alertmanager: enabled: false serviceAccounts: server: name: amp-iamproxy-ingest-service-account annotations: eks.amazonaws.com/role-arn: ${IAM_PROXY_PROMETHEUS_ROLE_ARN} server: persistentVolume: enabled: false remoteWrite: - url: https://aps-workspaces.${REGION}.amazonaws.com/workspaces/${WORKSPACE_ID}/api/v1/remote_write sigv4: region: ${REGION} queue_config: max_samples_per_send: 1000 max_shards: 200 capacity: 2500

다음 명령을 사용하여 재정의하여 Prometheus를 설치합니다.

helm install prometheus-for-amp prometheus-community/prometheus \ -n prometheus \ -f amp_ingest_override_values.yaml

차트 Helm 구성에서는 노드 내보내기와 알림 관리자를 비활성화하고 Prometheus 서버 배포를 실행하지 않도록 설정했습니다.

다음 예제 테스트 쿼리를 사용하여 설치를 확인할 수 있습니다.

$ awscurl --region region --service aps "https://aps-workspaces.region_id.amazonaws.com/workspaces/workspace_id/api/v1/query?query=prometheus_api_remote_read_queries" {"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"prometheus_api_remote_read_queries","instance":"localhost:9090","job":"prometheus"},"value":[1648461236.419,"0"]}]}}21