Skip to content

Instantly share code, notes, and snippets.

@caarlos0
Created September 18, 2019 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caarlos0/55bac531a06ac5fe56eef3b073748384 to your computer and use it in GitHub Desktop.
Save caarlos0/55bac531a06ac5fe56eef3b073748384 to your computer and use it in GitHub Desktop.
prometheus-operator:
kubelet:
serviceMonitor:
metricRelabelings:
- sourceLabels: ["__name__"]
regex: 'storage_operation.*'
action: drop
cAdvisorMetricRelabelings:
- sourceLabels: ["__name__"]
regex: '(container_network_tcp.*|container_network_udp.*|container_fs_.*|container_tasks_state.*|container_memory_failures_total|.*swap.*)'
action: drop
- regex: (id|endpoint|name)
action: labeldrop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment