Skip to content

Commit

Permalink
Merge pull request #48 from solarwinds/feature/NH-9827-entity-status-…
Browse files Browse the repository at this point in the history
…for-k8s-pod

NH-9827: Fill sw.k8s.pod.status label with current phase of the pod
  • Loading branch information
michalJakubis authored Jun 28, 2022
2 parents df416e7 + bda71c3 commit 8ce411f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions build/otel-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,22 @@ processors:
- action: update_label
label: status
new_label: sw.k8s.node.status
metricstransform/preprocessing:
transforms:
- include: k8s.kube_namespace_status_phase
- include: k8s.kube_pod_status_phase
action: update
operations:
- action: filter_datapoints
datapoint_value: 1
- action: update_label
label: phase
new_label: sw.k8s.namespace.status
- include: k8s.kube_pod_status_phase
new_label: sw.k8s.pod.status
metricstransform/preprocessing:
transforms:
- include: k8s.kube_namespace_status_phase
action: update
operations:
- action: update_label
label: phase
new_label: sw.k8s.pod.status
new_label: sw.k8s.namespace.status
- include: k8s.kube_pod_container_status_restarts_total
action: insert
new_name: k8s.kube.pod.container.status.restarts.total
Expand Down

0 comments on commit 8ce411f

Please sign in to comment.