@@ -73,7 +73,7 @@ More information here: https://kubernetes.io/docs/tutorials/security/ns-level-ps
73
73
74
74
- kubectl/kind/helm/jq binaries available in PATH,
75
75
- docker service up and running.
76
- - full set of metrics avaiable only bare-metal instance or Cloud .metal instance.
76
+ - full set of metrics available only bare-metal instance or Cloud .metal instance.
77
77
78
78
#### 1) (Optionally) mount resctrl filesystem (for RDT metrics)
79
79
95
95
- hostPath: /sys/fs/resctrl
96
96
containerPath: /sys/fs/resctrl
97
97
```
98
- e.g. create kind cluster with local registry with [ this script] ( https://kind.sigs.k8s.io/docs/user/local-registry/ ) .
98
+ e.g. create kind cluster with local registry with [ this script] ( https://kind.sigs.k8s.io/docs/user/local-registry/ )
99
99
and apply the patch to enable resctrl win following way:
100
100
101
101
```
@@ -173,6 +173,7 @@ kubectl proxy &
173
173
```
174
174
175
175
Access PCM metrics directly:
176
+
176
177
``` sh
177
178
kubectl get daemonset pcm
178
179
kubectl get pods
@@ -185,7 +186,7 @@ curl -Ls http://127.0.0.1:8001/api/v1/namespaces/default/pods/$podname/proxy/met
185
186
curl -Ls http://127.0.0.1:8001/api/v1/namespaces/default/pods/$podname /proxy/metrics | grep DRAM_Joules_Consumed # source: energy
186
187
```
187
188
188
- or through Prometheus UI/prom tool (requires prometheus operator to be deployed and helm install with with ` --set podMonitor=true ` ):
189
+ ... or through Prometheus UI/prom tool (requires prometheus operator to be deployed and helm install with with ` --set podMonitor=true ` ):
189
190
```
190
191
http://127.0.0.1:8001/api/v1/namespaces/default/services/prometheus-kube-prometheus-prometheus:http-web/proxy/graph
191
192
promtool query range --step 1m http://127.0.0.1:8001/api/v1/namespaces/default/services/prometheus-kube-prometheus-prometheus:http-web/proxy 'rate(DRAM_Writes{aggregate="system"}[5m])/1e9'
0 commit comments