Rook Toolbox
The Rook toolbox is a container with common tools used for rook debugging and testing. The rook toolbox can run as a deployment in a Kubernetes cluster where you can connect and run arbitrary Ceph commands. Launch the rook-ceph-tools pod and enter inside
Once inside the Pod you can check the status of the Ceph cluster with
When you are done with the toolbox, you can remove the deployment with
Ceph Dashboard
The dashboard is a very helpful tool to give you an overview of the status of your Ceph cluster, including overall health, status of the mon quorum, status of the mgr, osd, and other Ceph daemons, view pools and PG status, show logs for the daemons, and more.
The dashboard is enabled by default, if you have not modified the cluster.yaml
file. If this is true, doing a get of the services, you should get output similar to the following. The first service is for reporting the Prometheus metrics, while the latter service is for the dashboard.
The simplest way to expose the service is using the NodePort to open a port on the VM that can be accessed by the host. To create a service with the NodePort, use the dashboard-ingress-https.yaml
file, present in the same directory as the toolbox. Once the service is implemented, a port will be generated, in the range between 30000-32767, which you will have to open on OpenStack. As mentioned several times, you can choose a port yourself, always in the above range, by inserting the spec.ports.nodePort: <port>
parameter in the .yaml
file.
Using a browser, connect to the address https://<Master_FIP>:<port>
. After you connect to the dashboard you will need to login for secure access. Rook creates a default user named admin
and generates a secret called rook-ceph-dashboard-admin-password
in the namespace where the Rook Ceph cluster is running. To retrieve the generated password, you can run the following
Prometheus Monitoring
Each Rook Ceph cluster has some built in metrics collectors/exporters for monitoring with Prometheus. If you do not have Prometheus running, follow the steps presented here, to enable monitoring of Rook.
With the Prometheus operator running, we can create a service monitor that will watch the Rook cluster and collect metrics regularly. From the root of your locally cloned Rook repo, go the monitoring directory and make the following change to the service-monitor.yaml
file
Save the file and create the component. The release: prometheus
label that we have introduced serves so that the Prometheus operator can "see" the service monitor. How do I find out which label is used by Prometheus? Try running a describe and look for the Service Monitor Selector
parameter. The service monitor, in turn, points to the components it wants to analyze thanks to the parameters namespaceSelector
and selector
.
Once the Prometheus server is running, you can open a web browser and go http://<VM_FIP>:<Prometheus_port>
. You should see a new target.