Skip to content

Commit

Permalink
Drop container=pod label when scraping container network metrics (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek-sumo authored and samjsong committed Sep 3, 2020
1 parent c3435aa commit fbfc20c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/helm/prometheus-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ prometheus:
- action: keep
regex: kubelet;(?:container_network_receive_bytes_total|container_network_transmit_bytes_total)
sourceLabels: [job, __name__]
- action: labeldrop
sourceLabels: [container]
## node exporter metrics
## node_cpu_seconds_total
## node_load1
Expand Down
2 changes: 2 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,8 @@ prometheus-operator:
- action: keep
regex: kubelet;(?:container_network_receive_bytes_total|container_network_transmit_bytes_total)
sourceLabels: [job, __name__]
- action: labeldrop
sourceLabels: [container]
## node exporter metrics
## node_cpu_seconds_total
## node_load1
Expand Down
6 changes: 6 additions & 0 deletions deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@
"job",
"__name__"
]
},
{
action: "labeldrop",
sourceLabels: [
"container"
]
}
]
},
Expand Down

0 comments on commit fbfc20c

Please sign in to comment.