Fix scopt for adapter rules

This commit is contained in:
Stefan Reimer 2020-08-03 18:53:18 +01:00
parent 56d20b0683
commit 1f6aaf308f

View File

@ -118,6 +118,7 @@ prometheus-adapter:
node-role.kubernetes.io/master: ""
# Basic rules for HPA to work replacing heaptster, taken from kube-prometheus project
# https://github.com/coreos/kube-prometheus/blob/master/manifests/prometheus-adapter-configMap.yaml
rules:
resource:
cpu:
containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>}[3m])) by (<<.GroupBy>>)