Skip to content

Commit

Permalink
Merge pull request #859 from solarwinds/Remove-pod-status-from-metrics
Browse files Browse the repository at this point in the history
Remove pod status from metrics
  • Loading branch information
turytsia authored Jan 9, 2025
2 parents 1a7f628 + 8e21561 commit 3647619
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 65 deletions.
12 changes: 0 additions & 12 deletions deploy/helm/metrics-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,6 @@ processors:
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -723,16 +722,6 @@ processors:
from_attribute: phase
action: insert

attributes/attributes_pod_status:
include:
match_type: regexp
metric_names:
- kube_pod_status_phase
actions:
- key: sw.k8s.pod.status
from_attribute: phase
action: insert

{{- include "common-config.resource-metrics" . | nindent 2 }}

transform/cleanup_attributes_for_nonexisting_entities:
Expand Down Expand Up @@ -1188,7 +1177,6 @@ service:
- filter/preprocessing
- filter/remove_internal_postprocessing
- attributes/remove_temp
- attributes/attributes_pod_status
- attributes/attributes_namespace_status
- cumulativetodelta
- deltatorate
Expand Down
1 change: 0 additions & 1 deletion deploy/helm/templates/_common-config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ groupbyattrs/all:
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@ Metrics config should match snapshot when using default values:
match_type: regexp
metric_names:
- k8s.kube_namespace_status_phase
attributes/attributes_pod_status:
actions:
- action: insert
from_attribute: phase
key: sw.k8s.pod.status
include:
match_type: regexp
metric_names:
- kube_pod_status_phase
attributes/identify_init_container:
actions:
- action: insert
Expand Down Expand Up @@ -393,7 +384,6 @@ Metrics config should match snapshot when using default values:
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -1824,7 +1814,6 @@ Metrics config should match snapshot when using default values:
- filter/preprocessing
- filter/remove_internal_postprocessing
- attributes/remove_temp
- attributes/attributes_pod_status
- attributes/attributes_namespace_status
- cumulativetodelta
- deltatorate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@ Metrics config should match snapshot when fargate is enabled:
match_type: regexp
metric_names:
- k8s.kube_namespace_status_phase
attributes/attributes_pod_status:
actions:
- action: insert
from_attribute: phase
key: sw.k8s.pod.status
include:
match_type: regexp
metric_names:
- kube_pod_status_phase
attributes/identify_init_container:
actions:
- action: insert
Expand Down Expand Up @@ -393,7 +384,6 @@ Metrics config should match snapshot when fargate is enabled:
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -1824,7 +1814,6 @@ Metrics config should match snapshot when fargate is enabled:
- filter/preprocessing
- filter/remove_internal_postprocessing
- attributes/remove_temp
- attributes/attributes_pod_status
- attributes/attributes_namespace_status
- cumulativetodelta
- deltatorate
Expand Down Expand Up @@ -1889,15 +1878,6 @@ Metrics config should match snapshot when using Prometheus url with extra_scrape
match_type: regexp
metric_names:
- k8s.kube_namespace_status_phase
attributes/attributes_pod_status:
actions:
- action: insert
from_attribute: phase
key: sw.k8s.pod.status
include:
match_type: regexp
metric_names:
- kube_pod_status_phase
attributes/identify_init_container:
actions:
- action: insert
Expand Down Expand Up @@ -2251,7 +2231,6 @@ Metrics config should match snapshot when using Prometheus url with extra_scrape
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -3617,7 +3596,6 @@ Metrics config should match snapshot when using Prometheus url with extra_scrape
- filter/preprocessing
- filter/remove_internal_postprocessing
- attributes/remove_temp
- attributes/attributes_pod_status
- attributes/attributes_namespace_status
- cumulativetodelta
- deltatorate
Expand Down Expand Up @@ -3689,15 +3667,6 @@ Metrics config should match snapshot when using default values:
match_type: regexp
metric_names:
- k8s.kube_namespace_status_phase
attributes/attributes_pod_status:
actions:
- action: insert
from_attribute: phase
key: sw.k8s.pod.status
include:
match_type: regexp
metric_names:
- kube_pod_status_phase
attributes/identify_init_container:
actions:
- action: insert
Expand Down Expand Up @@ -4051,7 +4020,6 @@ Metrics config should match snapshot when using default values:
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -5402,7 +5370,6 @@ Metrics config should match snapshot when using default values:
- filter/preprocessing
- filter/remove_internal_postprocessing
- attributes/remove_temp
- attributes/attributes_pod_status
- attributes/attributes_namespace_status
- cumulativetodelta
- deltatorate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ Node collector config for windows nodes should match snapshot when using default
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -1355,7 +1354,6 @@ Node collector config for windows nodes should match snapshot when using legacy
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ Custom logs filter with new syntax:
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -1396,7 +1395,6 @@ Custom logs filter with old syntax:
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -2661,7 +2659,6 @@ Node collector config should match snapshot when autodiscovery is disabled:
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -3799,7 +3796,6 @@ Node collector config should match snapshot when fargate is enabled:
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -4913,7 +4909,6 @@ Node collector config should match snapshot when fargate is enabled and autodisc
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down Expand Up @@ -5981,7 +5976,6 @@ Node collector config should match snapshot when using default values:
- image
- image_id
- k8s.node.name
- sw.k8s.pod.status
- sw.k8s.namespace.status
- sw.k8s.node.status
- sw.k8s.container.status
Expand Down

0 comments on commit 3647619

Please sign in to comment.