You can monitor your local YugabyteDB cluster with a local instance of Prometheus, a popular standard for time-series monitoring of cloud native infrastructure. YugabyteDB services and APIs expose metrics in the Prometheus format at the /prometheus-metrics endpoint.

For details on the metrics targets for YugabyteDB, see Prometheus monitoring.

If you haven't installed YugabyteDB, follow the Quick Start guide.

1. Create universe

If you have a previously running local universe, destroy it using the following.

$ kubectl delete -f yugabyte-statefulset.yaml

Start a new local cluster - by default, this will create a three-node universe with a replication factor of 3.

$ kubectl apply -f yugabyte-statefulset.yaml

Step 6. Clean up (optional)

Optionally, you can shut down the local cluster created in Step 1.

$ kubectl delete -f yugabyte-statefulset.yaml

Further, to destroy the persistent volume claims (you will lose all the data if you do this), run:

kubectl delete pvc -l app=yb-master
kubectl delete pvc -l app=yb-tserver