Skip to content

Commit

Permalink
filter unused container metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
vsinghal13 committed Mar 24, 2020
1 parent 8de160f commit ca8a5b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -602,13 +602,13 @@ prometheus-operator:
regex: POD
sourceLabels: [container]
- action: keep
regex: kubelet;.+;(?:container_cpu_load_average_10s|container_cpu_system_seconds_total|container_cpu_usage_seconds_total|container_cpu_cfs_throttled_seconds_total|container_memory_usage_bytes|container_memory_swap|container_memory_working_set_bytes|container_spec_memory_limit_bytes|container_spec_memory_swap_limit_bytes|container_spec_memory_reservation_limit_bytes|container_spec_cpu_quota|container_spec_cpu_period|container_fs_usage_bytes|container_fs_limit_bytes|container_fs_reads_bytes_total|container_fs_writes_bytes_total|)
regex: kubelet;.+;(?:container_cpu_usage_seconds_total|container_memory_working_set_bytes|container_fs_usage_bytes|container_fs_limit_bytes)
sourceLabels: [job,container,__name__]
# cadvisor aggregate container metrics
- url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.container
writeRelabelConfigs:
- action: keep
regex: kubelet;(?:container_network_receive_bytes_total|container_network_transmit_bytes_total|container_network_receive_errors_total|container_network_transmit_errors_total|container_network_receive_packets_dropped_total|container_network_transmit_packets_dropped_total)
regex: kubelet;(?:container_network_receive_bytes_total)
sourceLabels: [job,__name__]
# node exporter metrics
- url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.node
Expand Down

0 comments on commit ca8a5b6

Please sign in to comment.