Skip to content

Commit de9ff81

Browse files
committed
remove filters dropping critical cpu, memory, and k8s state metrics
1 parent 1da3a19 commit de9ff81

File tree

4 files changed

+0
-114
lines changed

4 files changed

+0
-114
lines changed

charts/nr-k8s-otel-collector/examples/k8s/rendered/daemonset-configmap.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -514,25 +514,6 @@ data:
514514
aggregation_type: sum
515515
516516
# following system.% metrics reduce metrics reported by hostmetrics receiver
517-
filter/exclude_cpu_utilization:
518-
metrics:
519-
datapoint:
520-
- 'metric.name == "system.cpu.utilization" and attributes["state"] == "interrupt"'
521-
- 'metric.name == "system.cpu.utilization" and attributes["state"] == "nice"'
522-
- 'metric.name == "system.cpu.utilization" and attributes["state"] == "softirq"'
523-
filter/exclude_memory_utilization:
524-
metrics:
525-
datapoint:
526-
- 'metric.name == "system.memory.utilization" and attributes["state"] == "slab_unreclaimable"'
527-
- 'metric.name == "system.memory.utilization" and attributes["state"] == "inactive"'
528-
- 'metric.name == "system.memory.utilization" and attributes["state"] == "cached"'
529-
- 'metric.name == "system.memory.utilization" and attributes["state"] == "buffered"'
530-
- 'metric.name == "system.memory.utilization" and attributes["state"] == "slab_reclaimable"'
531-
filter/exclude_memory_usage:
532-
metrics:
533-
datapoint:
534-
- 'metric.name == "system.memory.usage" and attributes["state"] == "slab_unreclaimable"'
535-
- 'metric.name == "system.memory.usage" and attributes["state"] == "inactive"'
536517
filter/exclude_filesystem_utilization:
537518
metrics:
538519
datapoint:
@@ -770,9 +751,6 @@ data:
770751
- filter/exclude_metrics_low_data_mode
771752
- metricstransform/hostmetrics_cpu
772753
- transform/truncate
773-
- filter/exclude_cpu_utilization
774-
- filter/exclude_memory_utilization
775-
- filter/exclude_memory_usage
776754
- filter/exclude_filesystem_utilization
777755
- filter/exclude_filesystem_usage
778756
- filter/exclude_filesystem_inodes_usage

charts/nr-k8s-otel-collector/examples/k8s/rendered/deployment-configmap.yaml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -477,37 +477,6 @@ data:
477477
metric:
478478
- 'HasAttrOnDatapoint("low.data.mode", "false")'
479479
480-
filter/exclude_zero_value_kube_node_status_condition:
481-
metrics:
482-
datapoint:
483-
- metric.name == "kube_node_status_condition" and value_double == 0.0
484-
485-
filter/exclude_zero_value_kube_persistentvolumeclaim_status_phase:
486-
metrics:
487-
datapoint:
488-
- metric.name == "kube_persistentvolumeclaim_status_phase" and value_double == 0.0
489-
490-
filter/nr_exclude_zero_value_kube_pod_container_deployment_statuses:
491-
metrics:
492-
datapoint:
493-
- metric.name == "kube_pod_status_phase" and value_double < 0.5
494-
- metric.name == "kube_pod_status_ready" and value_double < 0.5
495-
- metric.name == "kube_pod_status_scheduled" and value_double < 0.5
496-
- metric.name == "kube_pod_container_status_ready" and value_double < 0.5
497-
- metric.name == "kube_pod_container_status_phase" and value_double < 0.5
498-
- metric.name == "kube_pod_container_status_restarts_total" and value_double < 0.5
499-
- metric.name == "kube_deployment_status_condition" and value_double < 0.5
500-
- metric.name == "kube_pod_container_status_waiting_reason" and value_double < 0.5
501-
502-
filter/nr_exclude_zero_value_kube_jobs:
503-
metrics:
504-
datapoint:
505-
- metric.name == "kube_job_complete" and value_double < 0.5
506-
- metric.name == "kube_job_spec_parallelism" and value_double < 0.5
507-
- metric.name == "kube_job_status_failed" and value_double < 0.5
508-
- metric.name == "kube_job_status_active" and value_double < 0.5
509-
- metric.name == "kube_job_status_succeeded" and value_double < 0.5
510-
511480
resource/newrelic:
512481
attributes:
513482
# We set the cluster name to what the customer specified in the helm chart
@@ -756,15 +725,11 @@ data:
756725
processors:
757726
- memory_limiter
758727
- metricstransform/kube_pod_container_status_phase
759-
- filter/exclude_zero_value_kube_node_status_condition
760-
- filter/exclude_zero_value_kube_persistentvolumeclaim_status_phase
761-
- filter/nr_exclude_zero_value_kube_pod_container_deployment_statuses
762728
- transform/convert_timestamp
763729
- metricstransform/ldm
764730
- metricstransform/k8s_cluster_info_ldm
765731
- metricstransform/ksm
766732
- filter/exclude_metrics_low_data_mode
767-
- filter/nr_exclude_zero_value_kube_jobs
768733
- transform/low_data_mode_inator
769734
- resource/low_data_mode_inator
770735
- resource/newrelic

charts/nr-k8s-otel-collector/templates/daemonset-configmap.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -531,25 +531,6 @@ data:
531531
aggregation_type: sum
532532
533533
# following system.% metrics reduce metrics reported by hostmetrics receiver
534-
filter/exclude_cpu_utilization:
535-
metrics:
536-
datapoint:
537-
- 'metric.name == "system.cpu.utilization" and attributes["state"] == "interrupt"'
538-
- 'metric.name == "system.cpu.utilization" and attributes["state"] == "nice"'
539-
- 'metric.name == "system.cpu.utilization" and attributes["state"] == "softirq"'
540-
filter/exclude_memory_utilization:
541-
metrics:
542-
datapoint:
543-
- 'metric.name == "system.memory.utilization" and attributes["state"] == "slab_unreclaimable"'
544-
- 'metric.name == "system.memory.utilization" and attributes["state"] == "inactive"'
545-
- 'metric.name == "system.memory.utilization" and attributes["state"] == "cached"'
546-
- 'metric.name == "system.memory.utilization" and attributes["state"] == "buffered"'
547-
- 'metric.name == "system.memory.utilization" and attributes["state"] == "slab_reclaimable"'
548-
filter/exclude_memory_usage:
549-
metrics:
550-
datapoint:
551-
- 'metric.name == "system.memory.usage" and attributes["state"] == "slab_unreclaimable"'
552-
- 'metric.name == "system.memory.usage" and attributes["state"] == "inactive"'
553534
filter/exclude_filesystem_utilization:
554535
metrics:
555536
datapoint:
@@ -817,9 +798,6 @@ data:
817798
{{- end }}
818799
- metricstransform/hostmetrics_cpu
819800
- transform/truncate
820-
- filter/exclude_cpu_utilization
821-
- filter/exclude_memory_utilization
822-
- filter/exclude_memory_usage
823801
- filter/exclude_filesystem_utilization
824802
- filter/exclude_filesystem_usage
825803
- filter/exclude_filesystem_inodes_usage

charts/nr-k8s-otel-collector/templates/deployment-configmap.yaml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -522,37 +522,6 @@ data:
522522
metric:
523523
- 'HasAttrOnDatapoint("low.data.mode", "false")'
524524
525-
filter/exclude_zero_value_kube_node_status_condition:
526-
metrics:
527-
datapoint:
528-
- metric.name == "kube_node_status_condition" and value_double == 0.0
529-
530-
filter/exclude_zero_value_kube_persistentvolumeclaim_status_phase:
531-
metrics:
532-
datapoint:
533-
- metric.name == "kube_persistentvolumeclaim_status_phase" and value_double == 0.0
534-
535-
filter/nr_exclude_zero_value_kube_pod_container_deployment_statuses:
536-
metrics:
537-
datapoint:
538-
- metric.name == "kube_pod_status_phase" and value_double < 0.5
539-
- metric.name == "kube_pod_status_ready" and value_double < 0.5
540-
- metric.name == "kube_pod_status_scheduled" and value_double < 0.5
541-
- metric.name == "kube_pod_container_status_ready" and value_double < 0.5
542-
- metric.name == "kube_pod_container_status_phase" and value_double < 0.5
543-
- metric.name == "kube_pod_container_status_restarts_total" and value_double < 0.5
544-
- metric.name == "kube_deployment_status_condition" and value_double < 0.5
545-
- metric.name == "kube_pod_container_status_waiting_reason" and value_double < 0.5
546-
547-
filter/nr_exclude_zero_value_kube_jobs:
548-
metrics:
549-
datapoint:
550-
- metric.name == "kube_job_complete" and value_double < 0.5
551-
- metric.name == "kube_job_spec_parallelism" and value_double < 0.5
552-
- metric.name == "kube_job_status_failed" and value_double < 0.5
553-
- metric.name == "kube_job_status_active" and value_double < 0.5
554-
- metric.name == "kube_job_status_succeeded" and value_double < 0.5
555-
556525
{{- if include "newrelic.common.openShift" . }}
557526
resourcedetection/openshift:
558527
detectors: ["openshift"]
@@ -826,16 +795,12 @@ data:
826795
processors:
827796
- memory_limiter
828797
- metricstransform/kube_pod_container_status_phase
829-
- filter/exclude_zero_value_kube_node_status_condition
830-
- filter/exclude_zero_value_kube_persistentvolumeclaim_status_phase
831-
- filter/nr_exclude_zero_value_kube_pod_container_deployment_statuses
832798
- transform/convert_timestamp
833799
{{- if include "nrKubernetesOtel.lowDataMode" . }}
834800
- metricstransform/ldm
835801
- metricstransform/k8s_cluster_info_ldm
836802
- metricstransform/ksm
837803
- filter/exclude_metrics_low_data_mode
838-
- filter/nr_exclude_zero_value_kube_jobs
839804
- transform/low_data_mode_inator
840805
- resource/low_data_mode_inator
841806
{{- end }}

0 commit comments

Comments
 (0)