From 5df2060872dd70fe3ef66f50826e89226520b856 Mon Sep 17 00:00:00 2001 From: Juan-Lee Pang Date: Wed, 2 Dec 2020 06:45:30 -0800 Subject: [PATCH 1/2] Higher cpu limits for node-exporter to avoid CPUThrottlingHigh --- examples/kube-prometheus/kustomization.yaml | 1 + .../node-exporter-daemonset.yaml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 examples/kube-prometheus/node-exporter-daemonset.yaml diff --git a/examples/kube-prometheus/kustomization.yaml b/examples/kube-prometheus/kustomization.yaml index 692ecd37..8bfb3701 100644 --- a/examples/kube-prometheus/kustomization.yaml +++ b/examples/kube-prometheus/kustomization.yaml @@ -2,3 +2,4 @@ resources: - github.com/prometheus-operator/kube-prometheus?ref=4b690d4a5c3e7f66ef2e5882f4258cc1ca4c890e patchesStrategicMerge: - alertmanager-secret.yaml +- node-exporter-daemonset.yaml diff --git a/examples/kube-prometheus/node-exporter-daemonset.yaml b/examples/kube-prometheus/node-exporter-daemonset.yaml new file mode 100644 index 00000000..00089a4d --- /dev/null +++ b/examples/kube-prometheus/node-exporter-daemonset.yaml @@ -0,0 +1,17 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: node-exporter + namespace: monitoring +spec: + template: + spec: + containers: + - name: node-exporter + resources: + limits: + cpu: 600m + memory: 180Mi + requests: + cpu: 102m + memory: 180Mi From 5fcfa544d58f25ef8a08213ac23583575878c8c9 Mon Sep 17 00:00:00 2001 From: Juan-Lee Pang Date: Wed, 2 Dec 2020 07:24:40 -0800 Subject: [PATCH 2/2] Add a How-to link for accessing dashboards --- examples/kube-prometheus/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/kube-prometheus/README.md b/examples/kube-prometheus/README.md index 0b3bce33..607ec00c 100644 --- a/examples/kube-prometheus/README.md +++ b/examples/kube-prometheus/README.md @@ -14,3 +14,7 @@ updates are applied to customize the configuration for AKS. ``` sh kustomize build github.com/Azure/AKS/examples/kube-prometheus | kubectl apply -f - ``` + +## How-to + +- [Access the dashboards](https://github.com/prometheus-operator/kube-prometheus#access-the-dashboards)