1
- ### Setup
1
+ # Local setup
2
2
3
3
1 . Start Kubernetes
4
- 2 . [ Install and start Prometheus] ( https://sustainable-computing.io/installation/kepler/#deploy-the-prometheus-operator ) 2. ` cd kube-prometheus ` 3. ` kubectl apply --server-side -f manifests/setup ` 4. ` kubectl apply -f manifests/ ` 5. Wait… 6. ` kubectl -n monitoring port-forward svc/grafana 3000 ` 7. Open dashboard _ localhost:3000_
5
- 3 . Install metrics server
4
+ 2 . [ Install and start Prometheus] ( https://sustainable-computing.io/installation/kepler/#deploy-the-prometheus-operator )
5
+ 1 . ` cd kube-prometheus `
6
+ 2 . ` kubectl apply --server-side -f manifests/setup `
7
+ 3 . ` kubectl apply -f manifests/ `
8
+ 4 . Wait…
9
+ 5 . ` kubectl -n monitoring port-forward svc/grafana 3000 `
10
+ 6 . Open dashboard _ localhost:3000_
11
+ 4 . Install metrics server
6
12
1 . ` kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml `
7
13
2 . Patch
8
14
@@ -27,14 +33,14 @@ kubectl patch -n kube-system deployment metrics-server --type=json \
27
33
6 . ` helm install falco-exporter falcosecurity/falco-exporter `
28
34
10 . Run Falco tests
29
35
1 . https://github.com/falcosecurity/cncf-green-review-testing/tree/main/benchmark-tests
30
- 11 . May need to remove ` nodeSelector `
31
- 12 . Write out metrics to JSON
32
- 13 . Thinking about https://github.com/prometheus/prom2json
33
- 14 . These metrics:
36
+ 2 . May need to remove ` nodeSelector `
37
+ 3 . Write out metrics to JSON
38
+ 4 . Thinking about https://github.com/prometheus/prom2json
39
+ 5 . These metrics:
34
40
35
- ```
36
- rate(container_cpu_usage_seconds_total[5m])
37
- container_memory_rss
38
- container_memory_working_set_bytes
39
- kepler_container_joules_total
40
- ```
41
+ ```
42
+ rate(container_cpu_usage_seconds_total[5m])
43
+ container_memory_rss
44
+ container_memory_working_set_bytes
45
+ kepler_container_joules_total
46
+ ```
0 commit comments