Skip to content

Commit 5909561

Browse files
committed
Final slides/demos for 20221124
1 parent 27d9898 commit 5909561

6 files changed

+811
-81
lines changed

100_monitoring/prometheus/cluster_scraping.drawio.svg

+421
Loading

100_monitoring/prometheus/demo.sh

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ docker-setup --tools=docker,docker-compose,buildx,kind,kubectl,helm,kubeletctl i
55

66
# cluster
77
kind create cluster --config kind.yaml
8+
kubectl apply -f kubelet.yaml
89

910
# ingress
1011
curl --silent --location https://github.com/kubernetes/ingress-nginx/raw/main/deploy/static/provider/kind/deploy.yaml | kubectl apply -f -

100_monitoring/prometheus/monitors.yaml

-17
Original file line numberDiff line numberDiff line change
@@ -225,20 +225,3 @@ spec:
225225
matchLabels:
226226
app.kubernetes.io/component: controller
227227
app.kubernetes.io/name: prometheus-operator
228-
---
229-
apiVersion: monitoring.coreos.com/v1
230-
kind: ServiceMonitor
231-
metadata:
232-
name: grafana
233-
namespace: kube-system
234-
labels:
235-
app.kubernetes.io/instance: grafana
236-
app.kubernetes.io/name: grafana
237-
spec:
238-
endpoints:
239-
- honorLabels: true
240-
port: service
241-
selector:
242-
matchLabels:
243-
app.kubernetes.io/instance: grafana
244-
app.kubernetes.io/name: grafana
Loading

100_monitoring/prometheus/values-kube-state-metrics.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ metricDenylist: []
181181
# label keys you would like to allow for them (Example: '=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)'.
182182
# A single '*' can be provided per resource instead to allow any labels, but that has
183183
# severe performance implications (Example: '=pods=[*]').
184-
metricLabelsAllowlist: []
185-
# - namespaces=[k8s-label-1,k8s-label-n]
184+
metricLabelsAllowlist:
185+
- pods=[*]
186186

187187
# Comma-separated list of Kubernetes annotations keys that will be used in the resource'
188188
# labels metric. By default the metric contains only name and namespace labels.

0 commit comments

Comments
 (0)