Knative Monitoring
Knative comes with Grafana pre-installed, which is an open source metric analytics and visualization tool. The Grafana pod is available in the knative-monitoring
namespace and can be listed with the following command:
$ kubectl get pods -l app=grafana -n knative-monitoring
The output should be as follows:
Figure 6.22: Listing the Grafana pod
We can expose the Grafana UI with the kubectl port-forward
command, which will forward local port 3000
to the port 3000
of the Grafana pod. Open a new terminal and execute the following command:
$ kubectl port-forward $(kubectl get pod -n knative-monitoring -l app=grafana -o jsonpath='{.items[0].metadata.name}') -n knative-monitoring 3000:3000
The output should be as follows:
Figure 6.23: Port forwarding to the Grafana pod
Now we can navigate the Grafana UI from our web browser on http://127.0.0.1:3000
.
The output should be as follows:
...