forked from antonputra/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.yaml
31 lines (31 loc) · 1.26 KB
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
prometheus:
url: http://prometheus-operated.monitoring.svc
rules:
default: true
resource:
cpu:
containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, container_label_io_kubernetes_container_name!=""}[3m])) by (<<.GroupBy>>)
nodeQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, id='/'}[3m])) by (<<.GroupBy>>) by (<<.GroupBy>>)
resources:
overrides:
container_label_io_kubernetes_pod_namespace:
resource: namespace
node:
resource: node
container_label_io_kubernetes_pod_name:
resource: pod
containerLabel: container_label_io_kubernetes_container_name
memory:
containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>, container_label_io_kubernetes_container_name!=""}) by (<<.GroupBy>>)
nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by (<<.GroupBy>>)
resources:
overrides:
container_label_io_kubernetes_pod_namespace:
resource: namespace
node:
resource: node
container_label_io_kubernetes_pod_name:
resource: pod
containerLabel: container_label_io_kubernetes_container_name
window: 3m