2018-12-12 18:18:00 +01:00
apiVersion : v1
data :
config.yaml : |
resourceRules :
cpu :
2019-10-09 22:33:29 +02:00
containerQuery : sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}[5m])) by (<<.GroupBy>>)
nodeQuery : sum(1 - rate(node_cpu_seconds_total{mode="idle"}[5m]) * on(namespace, pod) group_left(node) node_namespace_pod:kube_pod_info:{<<.LabelMatchers>>}) by (<<.GroupBy>>)
2018-12-12 18:18:00 +01:00
resources :
overrides :
node :
resource : node
namespace :
resource : namespace
2019-10-09 22:33:29 +02:00
pod :
2018-12-12 18:18:00 +01:00
resource : pod
2019-10-09 22:33:29 +02:00
containerLabel : container
2018-12-12 18:18:00 +01:00
memory :
2019-10-09 22:33:29 +02:00
containerQuery : sum(container_memory_working_set_bytes{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}) by (<<.GroupBy>>)
nodeQuery : sum(node_memory_MemTotal_bytes{job="node-exporter",<<.LabelMatchers>>} - node_memory_MemAvailable_bytes{job="node-exporter",<<.LabelMatchers>>}) by (<<.GroupBy>>)
2018-12-12 18:18:00 +01:00
resources :
overrides :
2019-10-09 22:33:29 +02:00
instance :
2018-12-12 18:18:00 +01:00
resource : node
namespace :
resource : namespace
2019-10-09 22:33:29 +02:00
pod :
2018-12-12 18:18:00 +01:00
resource : pod
2019-10-09 22:33:29 +02:00
containerLabel : container
window : 5m
2018-12-12 18:18:00 +01:00
kind : ConfigMap
metadata :
name : adapter-config
namespace : monitoring