Try default settings fro adapter
This commit is contained in:
parent
f9055d49fa
commit
56d20b0683
@ -17,6 +17,12 @@ prometheus-operator:
|
|||||||
enabled: true
|
enabled: true
|
||||||
kubeApiServer:
|
kubeApiServer:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
kubeStateMetrics:
|
||||||
|
enabled: true
|
||||||
|
kubelet:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# Disabled until we figure out how to scrape etcd with ssl client certs, scheduler/proxy/controller require https since 1.17
|
||||||
kubeControllerManager:
|
kubeControllerManager:
|
||||||
enabled: false
|
enabled: false
|
||||||
kubeDns:
|
kubeDns:
|
||||||
@ -27,10 +33,6 @@ prometheus-operator:
|
|||||||
enabled: false
|
enabled: false
|
||||||
kubeScheduler:
|
kubeScheduler:
|
||||||
enabled: false
|
enabled: false
|
||||||
kubeStateMetrics:
|
|
||||||
enabled: true
|
|
||||||
kubelet:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
prometheusOperator:
|
prometheusOperator:
|
||||||
enabled: true
|
enabled: true
|
||||||
@ -118,20 +120,8 @@ prometheus-adapter:
|
|||||||
# https://github.com/coreos/kube-prometheus/blob/master/manifests/prometheus-adapter-configMap.yaml
|
# https://github.com/coreos/kube-prometheus/blob/master/manifests/prometheus-adapter-configMap.yaml
|
||||||
resource:
|
resource:
|
||||||
cpu:
|
cpu:
|
||||||
containerQuery: sum(irate(container_cpu_usage_seconds_total{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}[5m])) by (<<.GroupBy>>)
|
containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>}[3m])) by (<<.GroupBy>>)
|
||||||
nodeQuery: sum(1 - irate(node_cpu_seconds_total{mode="idle"}[5m]) * on(namespace, pod) group_left(node) node_namespace_pod:kube_pod_info:{<<.LabelMatchers>>}) by (<<.GroupBy>>)
|
nodeQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, id='/'}[3m])) by (<<.GroupBy>>)
|
||||||
resources:
|
|
||||||
overrides:
|
|
||||||
node:
|
|
||||||
resource: node
|
|
||||||
namespace:
|
|
||||||
resource: namespace
|
|
||||||
pod:
|
|
||||||
resource: pod
|
|
||||||
containerLabel: container
|
|
||||||
memory:
|
|
||||||
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>>)
|
|
||||||
resources:
|
resources:
|
||||||
overrides:
|
overrides:
|
||||||
instance:
|
instance:
|
||||||
@ -141,4 +131,16 @@ prometheus-adapter:
|
|||||||
pod:
|
pod:
|
||||||
resource: pod
|
resource: pod
|
||||||
containerLabel: container
|
containerLabel: container
|
||||||
window: 5m
|
memory:
|
||||||
|
containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>}) by (<<.GroupBy>>)
|
||||||
|
nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by (<<.GroupBy>>)
|
||||||
|
resources:
|
||||||
|
overrides:
|
||||||
|
instance:
|
||||||
|
resource: node
|
||||||
|
namespace:
|
||||||
|
resource: namespace
|
||||||
|
pod:
|
||||||
|
resource: pod
|
||||||
|
containerLabel: container
|
||||||
|
window: 3m
|
||||||
|
Loading…
Reference in New Issue
Block a user