github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/scripts/vagrant/provision/manifests/kube-prometheus/prometheus-adapter-configMap.yaml (about) 1 apiVersion: v1 2 data: 3 config.yaml: | 4 resourceRules: 5 cpu: 6 containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>,container_name!="POD",container_name!="",pod_name!=""}[1m])) by (<<.GroupBy>>) 7 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>>) 8 resources: 9 overrides: 10 node: 11 resource: node 12 namespace: 13 resource: namespace 14 pod_name: 15 resource: pod 16 containerLabel: container_name 17 memory: 18 containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,container_name!="POD",container_name!="",pod_name!=""}) by (<<.GroupBy>>) 19 nodeQuery: sum(node:node_memory_bytes_total:sum{<<.LabelMatchers>>} - node:node_memory_bytes_available:sum{<<.LabelMatchers>>}) by (<<.GroupBy>>) 20 resources: 21 overrides: 22 node: 23 resource: node 24 namespace: 25 resource: namespace 26 pod_name: 27 resource: pod 28 containerLabel: container_name 29 window: 1m 30 kind: ConfigMap 31 metadata: 32 name: adapter-config 33 namespace: monitoring