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

문제 신고

데이터 거버넌스

스크래핑 간격 변경

New Relic Kubernetes 통합 v3 이상에서는 클러스터에서 지표가 수집되는 간격을 변경할 수 있습니다. 이를 통해 데이터 해상도와 사용량 간의 균형을 선택할 수 있습니다. 최적의 경험을 위해 15-30초 사이의 간격을 선택하는 것이 좋습니다.

스크래핑 간격을 변경하려면 newrelic-infrastructure 섹션 아래의 values-newrelic.yaml 에 다음을 추가하세요.

common:
config:
interval: 25s

따라서 다음과 같이 끝납니다.

global:
licenseKey: _YOUR_NEW_RELIC_LICENSE_KEY_
cluster: _K8S_CLUSTER_NAME_
# ... Other settings
# Configuration for newrelic-infrastructure
newrelic-infrastructure:
# ... Other settings
common:
config:
interval: 25s

중요

interval40s 보다 큰 값으로 설정하는 것은 허용되지 않습니다.

네임스페이스 필터링

Kubernetes 통합 v3 이상에서는 라벨을 지정하여 스크랩되는 네임스페이스를 필터링할 수 있습니다. 모든 네임스페이스는 기본적으로 스크랩됩니다.

Kubernetes와 동일한 방식으로 namespaceSelector 을 사용합니다.레이블과 일치하는 네임스페이스만 포함하려면 newrelic-infrastructure 섹션 아래의 values-newrelic.yaml 에 다음을 추가하여 namespaceSelector 을 변경합니다.

common:
config:
namespaceSelector:
matchLabels:
key1 : "value1"

이 예에서는 레이블이 newrelic.com/scrape 인 네임스페이스만 true 로 스크랩됩니다.

global:
licenseKey: _YOUR_NEW_RELIC_LICENSE_KEY_
cluster: _K8S_CLUSTER_NAME_
# ... Other settings
# Configuration for newrelic-infrastructure
newrelic-infrastructure:
# ... Other settings
common:
config:
namespaceSelector:
matchLabels:
newrelic.com/scrape: "true"

Kubernetes 표현식을 사용하여 다음 구문을 사용하여 네임스페이스를 포함하거나 제외할 수도 있습니다.

common:
config:
namespaceSelector:
matchExpressions:
- {key: newrelic.com/scrape, operator: NotIn, values: ["false"]}
- {key: key1, operator: In, values: ["value1"]}

matchExpressions 아래의 표현식은 연결됩니다.

이 예에서는 newrelic.com/scrape 레이블이 false 로 설정된 네임스페이스가 제외됩니다.

global:
licenseKey: _YOUR_NEW_RELIC_LICENSE_KEY_
cluster: _K8S_CLUSTER_NAME_
# ... Other settings
# Configuration for newrelic-infrastructure
newrelic-infrastructure:
# ... Other settings
common:
config:
namespaceSelector:
matchExpressions:
- {key: newrelic.com/scrape, operator: NotIn, values: ["false"]}

차트의 README 파일 에서 수정할 수 있는 전체 설정 목록을 확인하세요.

어떤 네임스페이스가 제외되는지 어떻게 알 수 있나요?

클러스터 내의 모든 네임스페이스는 K8sNamespace 샘플 덕분에 나열됩니다.nrFiltered 속성은 네임스페이스와 관련된 데이터를 스크랩할지 여부를 결정합니다.

모니터링되고 있는 네임스페이스를 찾으려면 다음 쿼리를 사용하세요.

FROM K8sNamespaceSample SELECT displayName, nrFiltered WHERE clusterName = <clusterName> SINCE 2 MINUTES AGO

제외된 네임스페이스에서 어떤 데이터가 삭제됩니까?

다음 샘플은 제외된 네임스페이스에 사용할 수 없습니다.

  • K8sContainerSample
  • K8sDaemonsetSample
  • K8sDeploymentSample
  • K8sEndpointSample
  • K8sHpaSample
  • K8sPodSample
  • K8sReplicasetSample
  • K8sServiceSample
  • K8sStatefulsetSample
  • K8sVolumeSample
Copyright © 2024 New Relic Inc.

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