2018-12-12 18:18:00 +01:00
apiVersion : v1
data :
config.yaml : |
resourceRules :
cpu :
2019-04-22 20:17:53 +02:00
containerQuery : sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>,container_name!="POD",container_name!="",pod_name!=""}[1m])) by (<<.GroupBy>>)
2019-03-13 22:44:16 +01:00
nodeQuery : sum(1 - rate(node_cpu_seconds_total{mode="idle"}[1m]) * 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
pod_name :
resource : pod
containerLabel : container_name
memory :
2019-04-22 20:17:53 +02:00
containerQuery : sum(container_memory_working_set_bytes{<<.LabelMatchers>>,container_name!="POD",container_name!="",pod_name!=""}) by (<<.GroupBy>>)
2019-03-13 22:44:16 +01:00
nodeQuery : sum(node:node_memory_bytes_total:sum{<<.LabelMatchers>>} - node:node_memory_bytes_available:sum{<<.LabelMatchers>>}) by (<<.GroupBy>>)
2018-12-12 18:18:00 +01:00
resources :
overrides :
node :
resource : node
namespace :
resource : namespace
pod_name :
resource : pod
containerLabel : container_name
window : 1m
kind : ConfigMap
metadata :
name : adapter-config
namespace : monitoring