• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

문제 신고

Prometheus 고가용성(HA)

고가용성(HA) 구성에서 Prometheus 원격 쓰기 통합을 사용하는 경우 Prometheus 서버가 동일한 메트릭의 여러 복사본을 New Relic으로 보내지 않는지 확인해야 합니다. 이 문서는 New Relic이 중복된 메트릭을 유지하지 않도록 원격 쓰기 통합을 구성하는 방법을 설명합니다.

고가용성 구성을 사용하지 않는 표준 Prometheus 원격 쓰기 통합에 대한 정보는 Prometheus 원격 쓰기 통합 설정 을 참조하십시오.

외부 레이블

New Relic은 고가용성 구성의 복제본에서 데이터 중복을 제거하기 위해 두 개의 외부 레이블이 필요합니다.

레이블 이름

설명

예시 값

prometheus

값이 고가용성 클러스터 또는 Prometheus 서버 그룹의 이름을 식별하는 레이블입니다.

monitoring-cluster

prometheus_replica

값이 이 데이터를 보내는 고유한 복제본을 식별하는 레이블입니다.

replica-1

나머지 섹션에서는 레이블이 Prometheus Operator 및 독립 실행형 Prometheus와 함께 작동하는 방식을 설명합니다.

프로메테우스 오퍼레이터

이러한 외부 레이블은 Prometheus Operator 버전 0.19.0(또는 그 이상)을 사용하는 경우 기본적으로 추가됩니다. 이것은 Prometheus Operator를 직접 사용하든 helm 차트 를 통해 사용하든 적용됩니다.

연산자는 prometheus 레이블(클러스터를 식별하는 레이블)의 값을 <prometheus deployment namespace>/<prometheus deployment name> 로 설정합니다. 예를 들어, Prometheus 배포의 네임스페이스가 monitoring 이고 배포 이름이 prometheus-cluster1 이면 값은 monitoring/prometheus-cluster1 입니다.

연산자는 prometheus_replica 레이블 값을 각 복제본의 포드 이름으로 설정합니다. 이것은 replica-<replica number> 형식을 따릅니다. 여기서 숫자는 해당 복제본의 서수입니다(예: 첫 번째 복제본의 이름은 replica-1임).

복제 데이터의 중복 사본이 계속 표시되는 경우 이러한 재정의가 레이블 이름을 변경하므로 Prometheus 사양 또는 차트 구성에 replicaExternalLabelName 또는 prometheusExternalLabelName 이 없는지 확인하십시오.

독립 실행형 프로메테우스

Prometheus 서버를 직접 배포할 때 구성 파일 에 외부 레이블을 추가해야 합니다. 다음은 동일한 고가용성 클러스터 내의 복제본에 대한 두 가지 다른 구성 예시입니다.

복제본 1 ( prometheus.yml )

global:
external_labels:
prometheus: monitoring-cluster
prometheus_replica: replica-1

복제본 2 (prometheus.yml)

global:
external_labels:
prometheus: monitoring-cluster
prometheus_replica: replica-2
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.