To visualize traffic metrics dashboards we can use grafana to visualize:
-- Installing metricskumactl install metrics | kubectl apply -f -
Once we have installed the required dependencies, we can now go ahead and enable metrics on our Mesh object by executing:
echo "apiVersion: kuma.io/v1alpha1kind: Meshmetadata: name: defaultspec: mtls: enabledBackend: ca-1 backends: - name: ca-1 type: builtin metrics: enabledBackend: prometheus-1 backends: - name: prometheus-1 type: prometheus" | kubectl apply -f -
This will enable the prometheus
metrics backend on the default
Mesh and automatically collect metrics for all of our traffic.
Now let’s go ahead and generate some traffic – to populate our charts – by using the demo application!
while [ true ]; do curl http://127.0.0.1:8080/items?q=; curl http://127.0.0.1:8080/items/1/reviews; done
Post a Comment