kong service mesh - getting metrics from data plane
Since kong mesh (kuma) uses injected namespace, we can just run a container and then access metrics exposed by envoy sidecar.
Let's do that right now and create a dummy pod that runs ubuntu image
kubectl run -it -n kuma-demo ubuntu-shell --image=ubuntu:22.04 --restart=Never --rm -- bash
Then you can either install curl into that container and curl
http://localhost:9901/stats/prometheus
Or you can do a port forward
kubectl port-forward pod/ubuntu-shell -n kuma-demo 9901:9901
And then load this up using your browser: http://localhost:9901/stats/prometheus
Example of the metrics expose are shown below:
Comments