Accessing metrics
- To open Grafana, enter the following command:
- This starts a local proxy of Grafana on port 3000. For security reasons, the Grafana UI is exposed only within the cluster.
Navigate to the Grafana UI at http://localhost:3000.
The following dashboards are pre-installed with Knative Serving:
- Nodes: CPU, memory, network, and disk metrics at node level
- Pods: CPU, memory, and network metrics at pod level
- Deployment: CPU, memory, and network metrics aggregated at deployment level
- Istio, Mixer and Pilot: Detailed Istio mesh, Mixer, and Pilot metrics
- Kubernetes: Dashboards giving insights into cluster health, deployments, and capacity usage
- Set up an administrator account to modify or add dashboards by signing in with username: and password:
admin
.
- Before you expose the Grafana UI outside the cluster, make sure to change the password. You will be prompted to set a password on first login, and it can later be changed at .
Prometheus
$(kubectl get pods -n knative-monitoring \
9090
- This starts a local proxy of Prometheus on port 9090. For security reasons, the Prometheus UI is exposed only within the cluster.
- Navigate to the Prometheus UI at
You can use the Prometheus web UI to troubleshoot publishing and service discovery issues for metrics.
- To see the targets that are being scraped, go to Status -> Targets
- To see a specific metric you can search for in the in search box on the top of the page