From 362fe3ea3376b4b13837772f190ebf04b6bdbe8c Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 19 Sep 2024 23:46:21 -0700 Subject: [PATCH] lower data mode settings --- charts/nr-k8s-otel-collector/Chart.yaml | 4 +-- .../templates/daemonset-configmap.yaml | 30 ++++++++++++------- .../templates/deployment-configmap.yaml | 6 ++++ 3 files changed, 26 insertions(+), 14 deletions(-) diff --git a/charts/nr-k8s-otel-collector/Chart.yaml b/charts/nr-k8s-otel-collector/Chart.yaml index 8c865e81c..59930423a 100644 --- a/charts/nr-k8s-otel-collector/Chart.yaml +++ b/charts/nr-k8s-otel-collector/Chart.yaml @@ -17,7 +17,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.7.5 +version: 0.7.6 dependencies: - name: common-library @@ -35,8 +35,6 @@ dependencies: appVersion: "0.7.1" maintainers: - - name: juanjjaramillo - url: https://github.com/juanjjaramillo - name: csongnr url: https://github.com/csongnr - name: dbudziwojskiNR diff --git a/charts/nr-k8s-otel-collector/templates/daemonset-configmap.yaml b/charts/nr-k8s-otel-collector/templates/daemonset-configmap.yaml index ad55bf623..47983df71 100644 --- a/charts/nr-k8s-otel-collector/templates/daemonset-configmap.yaml +++ b/charts/nr-k8s-otel-collector/templates/daemonset-configmap.yaml @@ -51,17 +51,18 @@ data: metrics: system.network.connections: enabled: false - processes: - process: - metrics: - process.cpu.utilization: - enabled: true - process.cpu.time: - enabled: false - mute_process_name_error: true - mute_process_exe_error: true - mute_process_io_error: true - mute_process_user_error: true + # Uncomment to enable process metrics, which can be noisy but valuable. + # processes: + # process: + # metrics: + # process.cpu.utilization: + # enabled: true + # process.cpu.time: + # enabled: false + # mute_process_name_error: true + # mute_process_exe_error: true + # mute_process_io_error: true + # mute_process_user_error: true kubeletstats: collection_interval: {{ .Values.receivers.kubeletstats.scrapeInterval }} @@ -535,16 +536,21 @@ data: limit_percentage: 80 spike_limit_percentage: 25 + cumulativetodelta: + batch: send_batch_max_size: 1000 timeout: 30s send_batch_size : 800 + exporters: otlphttp/newrelic: endpoint: {{ include "nrKubernetesOtel.endpoint" . }} headers: api-key: ${env:NR_LICENSE_KEY} + logging: + verbosity: detailed # TODO(chris): revisit using the gateway collector # otlphttp: # endpoint: "nr-k8s-otel-collector-gateway" @@ -601,9 +607,11 @@ data: - k8sattributes - attributes/self - memory_limiter + - cumulativetodelta - batch exporters: - otlphttp/newrelic + - logging {{- end }} {{- if .Values.receivers.filelog.enabled }} logs: diff --git a/charts/nr-k8s-otel-collector/templates/deployment-configmap.yaml b/charts/nr-k8s-otel-collector/templates/deployment-configmap.yaml index dd3d90ec6..cbe46e264 100644 --- a/charts/nr-k8s-otel-collector/templates/deployment-configmap.yaml +++ b/charts/nr-k8s-otel-collector/templates/deployment-configmap.yaml @@ -467,6 +467,8 @@ data: - key: net.host.port action: delete + cumulativetodelta: + k8sattributes: auth_type: "serviceAccount" passthrough: false @@ -515,6 +517,8 @@ data: endpoint: {{ include "nrKubernetesOtel.endpoint" . }} headers: api-key: ${env:NR_LICENSE_KEY} + logging: + verbosity: detailed service: {{- if include "newrelic.common.verboseLog" . }} telemetry: @@ -567,9 +571,11 @@ data: - k8sattributes - attributes/self - memory_limiter + - cumulativetodelta - batch exporters: - otlphttp/newrelic + - logging {{- end }} # TODO(chris): revisit using the gateway collector # logs: