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

문제 신고

데이터 수집 줄이기

데이터 수집 줄이기

뉴렐릭의 차트는 세부 정보를 제외시키는 대신 인제스트되는 데이터의 양을 줄이는 옵션 설정을 지원합니다. 이 옵션을 활성화하려면 nri-bundle 차트에서 global.lowDataModetrue로 설정합니다.

lowDataMode 아래에 설명된 nri-bundle 차트의 4가지 특정 구성요소에 영향을 미칩니다.

New Relic 기반 시설

lowDataMode 이 활성화되면 기본 스크래핑 간격이 15s 에서 30s 으)로 변경됩니다. lowDataMode 보다 우선 적용되는 config.interval 를 사용하여 사용자 정의 값을 지정할 수도 있습니다.

Prometheus 에이전트 통합

lowDataMode가 활성화되면, 다음 접두사가 붙은 메트릭은 뉴렐릭 쿠버네티스 통합에서 이미 수집 및 사용되므로 기본적으로 제외됩니다.

- kube_
- container_
- machine_
- cadvisor_

New Relic 로깅

lowDataMode가 활성화된 경우 레이블 및 주석은 뉴렐릭으로 전달되는 로그에 포함되지 않습니다. 이렇게 하면 뉴렐릭으로 인제스트하는 데이터가 줄어듭니다.

cluster_name, container_name, namespace_name, pod_name, stream, messagelog 필드는 유지됩니다.

낮은 데이터 모드 로그 예

다음 로그 레코드에는 뉴렐릭 Logs 쿠버네티스 플러그인에서 일반적으로 캡처하는 모든 속성이 포함되어 있습니다.

[
{
"cluster_name": "api-test",
"kubernetes": {
"annotations": {
"kubernetes.io/psp": "eks.privileged"
},
"container_hash": "fryckbos/test@sha256:5b098eaf3c7d5b3585eb10cebee63665b6208bea31ef31a3f0856c5ffdda644b",
"container_image": "fryckbos/test:latest",
"container_name": "newrelic-logging",
"docker_id": "134e1daf63761baa15e035b08b7aea04518a0f0e50af4215131a50c6a379a072",
"host": "ip-192-168-17-123.ec2.internal",
"labels": {
"app": "newrelic-logging",
"app.kubernetes.io/name": "newrelic-logging",
"controller-revision-hash": "84db95db86",
"pod-template-generation": "1",
"release": "nri-bundle"
},
"namespace_name": "nrlogs",
"pod_id": "54556e3e-719c-46b5-af69-020b75d69bf1",
"pod_name": "nri-bundle-newrelic-logging-jxnbj"
},
"message": "[2021/09/14 12:30:49] [ info] [engine] started (pid=1)\n",
"plugin": {
"source": "kubernetes",
"type": "fluent-bit",
"version": "1.8.1"
},
"stream": "stderr",
"time": "2021-09-14T12:30:49.138824971Z",
"timestamp": 1631622649138
}
]

lowDataMode가 활성화된 후 이전 로그 레코드는 다음과 같은 모습으로 표시됩니다.

[
{
"cluster_name": "api-test",
"container_name": "newrelic-logging",
"namespace_name": "nrlogs",
"pod_name": "nri-bundle-newrelic-logging-jxnbj",
"message": "[2021/09/14 12:30:49] [ info] [engine] started (pid=1)\n",
"stream": "stderr",
"timestamp": 1631622649138
}
]

New Relic 픽시 통합

lowDataMode 이 활성화된 경우 newrelic-pixie 통합은 Pixie 스팬에서 더 많은 샘플링을 수행하고 수집 간격을 10초에서 15초로 줄입니다.

lowDataMode 설정:

HTTP_SPAN_LIMIT: 750
DB_SPAN_LIMIT: 250
COLLECT_INTERVAL_SEC: 15

이러한 매개변수 및 기타 매개변수에 대한 기본 설정은 newrelic-pixie-integration Github 리포지토리에서 찾을 수 있습니다.

뉴렐릭의 쿠버네티스 통합을 최대한 활용하려면 무료 뉴렐릭 계정이 필요합니다. 아직 계정이 없으시면, 아래에서 무료 뉴렐릭 계정을 생성해 지금 바로 데이터 모니터링을 시작하십시오.

Copyright © 2024 New Relic Inc.

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