KubeZero/charts/kubezero-metrics/values.yaml

220 lines
5.0 KiB
YAML
Raw Normal View History

2020-10-10 00:58:44 +00:00
kube-prometheus-stack:
2020-08-03 16:01:39 +00:00
defaultRules:
create: true
2020-07-30 16:19:04 +00:00
coreDns:
2020-08-03 16:01:39 +00:00
enabled: true
kubeDns:
enabled: false
2020-07-30 16:19:04 +00:00
kubeApiServer:
2020-08-03 16:01:39 +00:00
enabled: true
2020-08-03 17:47:11 +00:00
kubeStateMetrics:
enabled: true
2020-08-04 13:45:42 +00:00
kubeProxy:
2020-08-03 17:47:11 +00:00
enabled: true
2020-07-30 16:19:04 +00:00
kubeEtcd:
2020-09-02 14:05:57 +00:00
enabled: true
service:
port: 2381
targetPort: 2381
kubeControllerManager:
enabled: true
service:
port: 10257
targetPort: 10257
serviceMonitor:
https: true
insecureSkipVerify: true
2020-07-30 16:19:04 +00:00
kubeScheduler:
enabled: true
service:
port: 10259
targetPort: 10259
serviceMonitor:
https: true
insecureSkipVerify: true
2020-08-04 13:45:42 +00:00
kubelet:
enabled: true
serviceMonitor:
# removed with 1.18, but still required for all container metrics ??
cAdvisor: true
2020-08-04 13:45:42 +00:00
2020-07-30 16:19:04 +00:00
prometheusOperator:
enabled: true
2020-12-02 14:24:07 +00:00
logFormat: json
2020-07-30 17:56:46 +00:00
2020-07-31 00:18:07 +00:00
# Run on controller nodes
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
nodeSelector:
node-role.kubernetes.io/master: ""
2021-03-22 10:41:26 +00:00
resources:
requests:
cpu: 20m
memory: 32Mi
limits:
memory: 64Mi
2020-07-31 00:18:07 +00:00
2020-08-03 12:50:32 +00:00
namespaces:
releaseNamespace: true
2020-08-03 12:57:14 +00:00
additional:
- kube-system
- istio-system
- istio-ingress
- logging
admissionWebhooks:
patch:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
nodeSelector:
node-role.kubernetes.io/master: ""
2020-08-03 12:26:00 +00:00
nodeExporter:
enabled: true
2020-08-04 00:38:26 +00:00
serviceMonitor:
relabelings:
- sourceLabels: [__meta_kubernetes_pod_node_name]
separator: ;
regex: ^(.*)$
targetLabel: node
replacement: $1
action: replace
2021-03-22 11:05:02 +00:00
prometheus-node-exporter:
2021-03-22 10:41:26 +00:00
resources:
requests:
cpu: 20m
memory: 16Mi
2020-08-03 12:26:00 +00:00
prometheus:
enabled: true
2020-08-03 14:51:44 +00:00
prometheusSpec:
2020-08-03 16:44:58 +00:00
retention: 8d
portName: http-prometheus
2020-12-02 14:24:07 +00:00
logFormat: json
# externalUrl:
2020-08-03 16:44:58 +00:00
2020-08-03 14:51:44 +00:00
resources:
requests:
2021-03-22 10:41:26 +00:00
memory: 512Mi
cpu: 500m
2020-09-10 13:01:28 +00:00
limits:
2021-03-22 10:41:26 +00:00
memory: 3Gi
# cpu: "1000m"
2020-08-03 12:26:00 +00:00
2020-08-03 14:51:44 +00:00
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: ebs-sc-gp2-xfs
accessModes: ["ReadWriteOnce"]
resources:
requests:
2020-09-10 13:01:28 +00:00
storage: 16Gi
2020-08-03 12:26:00 +00:00
2020-08-03 15:08:16 +00:00
# Custom Grafana tweaks
# - persistence, plugins, auth
grafana:
enabled: true
persistence:
enabled: true
size: 4Gi
storageClassName: ebs-sc-gp2-xfs
deploymentStrategy:
type: Recreate
2020-08-03 15:08:16 +00:00
plugins:
- grafana-piechart-panel
service:
portName: http-grafana
initChownData:
enabled: false
testFramework:
enabled: false
# Assign state metrics to control plane
kube-state-metrics:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
nodeSelector:
node-role.kubernetes.io/master: ""
2020-08-03 16:15:12 +00:00
# Todo
alertmanager:
enabled: false
alertmanagerSpec:
# externalUrl:
logFormat: json
2020-08-03 16:15:12 +00:00
# Metrics adapter
prometheus-adapter:
enabled: true
2021-01-20 15:31:00 +00:00
logLevel: 1
2020-08-03 19:52:57 +00:00
prometheus:
2020-10-10 01:41:43 +00:00
url: http://metrics-kube-prometheus-st-prometheus
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
nodeSelector:
node-role.kubernetes.io/master: ""
2020-08-03 12:16:48 +00:00
# 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
2020-08-03 17:53:18 +00:00
rules:
2020-08-03 20:29:24 +00:00
default: false
2020-08-03 17:53:18 +00:00
resource:
cpu:
2020-10-21 11:51:15 +00:00
containerQuery: sum(irate(container_cpu_usage_seconds_total{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}[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>>)
2020-08-03 17:53:18 +00:00
resources:
overrides:
2020-10-21 11:51:15 +00:00
node:
2020-08-03 17:53:18 +00:00
resource: node
namespace:
resource: namespace
pod:
resource: pod
containerLabel: container
memory:
2020-10-21 11:51:15 +00:00
containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}) by (<<.GroupBy>>)
2020-10-21 12:05:08 +00:00
nodeQuery: sum(node_memory_MemTotal_bytes{job="node-exporter",<<.LabelMatchers>>} - node_memory_MemAvailable_bytes{job="node-exporter",<<.LabelMatchers>>}) by (<<.GroupBy>>)
2020-08-03 17:53:18 +00:00
resources:
overrides:
2020-10-21 11:51:15 +00:00
node:
2020-08-03 17:53:18 +00:00
resource: node
namespace:
resource: namespace
pod:
resource: pod
containerLabel: container
2020-10-10 00:58:44 +00:00
window: 3m
istio:
grafana:
enabled: false
ipBlocks: []
url: ""
gateway: istio-ingress/ingressgateway
2020-12-02 12:30:17 +00:00
destination: metrics-grafana
prometheus:
enabled: false
ipBlocks: []
url: ""
gateway: istio-ingress/ingressgateway
2020-12-02 12:30:17 +00:00
destination: metrics-kube-prometheus-st-prometheus
alertmanager:
enabled: false
ipBlocks: []
url: ""
gateway: istio-ingress/ingressgateway
2020-12-02 12:30:17 +00:00
destination: metrics-kube-prometheus-st-alertmanager