Revert prometheus adapter changes
This commit is contained in:
parent
44d08c7abc
commit
72a917bdae
@ -160,11 +160,11 @@ prometheus-adapter:
|
|||||||
default: false
|
default: false
|
||||||
resource:
|
resource:
|
||||||
cpu:
|
cpu:
|
||||||
containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>}[3m])) by (<<.GroupBy>>)
|
containerQuery: sum(irate(container_cpu_usage_seconds_total{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}[3m])) by (<<.GroupBy>>)
|
||||||
nodeQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, id='/'}[3m])) by (<<.GroupBy>>)
|
nodeQuery: sum(1 - irate(node_cpu_seconds_total{mode="idle"}[3m]) * on(namespace, pod) group_left(node) node_namespace_pod:kube_pod_info:{<<.LabelMatchers>>}) by (<<.GroupBy>>)
|
||||||
resources:
|
resources:
|
||||||
overrides:
|
overrides:
|
||||||
instance:
|
node:
|
||||||
resource: node
|
resource: node
|
||||||
namespace:
|
namespace:
|
||||||
resource: namespace
|
resource: namespace
|
||||||
@ -172,11 +172,11 @@ prometheus-adapter:
|
|||||||
resource: pod
|
resource: pod
|
||||||
containerLabel: container
|
containerLabel: container
|
||||||
memory:
|
memory:
|
||||||
containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>}) by (<<.GroupBy>>)
|
containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}) by (<<.GroupBy>>)
|
||||||
nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by (<<.GroupBy>>)
|
nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by (<<.GroupBy>>)
|
||||||
resources:
|
resources:
|
||||||
overrides:
|
overrides:
|
||||||
instance:
|
node:
|
||||||
resource: node
|
resource: node
|
||||||
namespace:
|
namespace:
|
||||||
resource: namespace
|
resource: namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user