mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-20 19:07:17 +01:00
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
|
apiVersion: v1
|
||
|
data:
|
||
|
config.yaml: |
|
||
|
resourceRules:
|
||
|
cpu:
|
||
|
containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>}[1m])) by (<<.GroupBy>>)
|
||
|
nodeQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, id='/'}[1m])) by (<<.GroupBy>>)
|
||
|
resources:
|
||
|
overrides:
|
||
|
node:
|
||
|
resource: node
|
||
|
namespace:
|
||
|
resource: namespace
|
||
|
pod_name:
|
||
|
resource: pod
|
||
|
containerLabel: container_name
|
||
|
memory:
|
||
|
containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>}) by (<<.GroupBy>>)
|
||
|
nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by (<<.GroupBy>>)
|
||
|
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
|