Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleRetrive Password
collapsetrue
$ kubectl -n rook-ceph get secret rook-ceph-dashboard-password -o jsonpath="{['data']['password']}" | base64 --decode && echo

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

Code Block
languagebash
titlePrometheus Instances
collapsetrue
$ cd rook/cluster/examples/kubernetes/ceph/monitoring
$ kubectl create -f service-monitor.yaml
$ kubectl create -f prometheus.yaml
$ kubectl create -f prometheus-service.yaml
# Ensure that the Prometheus server pod gets created and advances to the Running state before moving on
$ kubectl -n rook-ceph get pod prometheus-rook-prometheus-0

Once the Prometheus server is running, you can open a web browser and go http://<VM_FIP>:<port>. In the prometheus-service.yaml file the nodePort parameter is set by default to 30900. Obviously you can customize this value and remember to open the chosen port on OpenStack.