In the previous blog, we discussed how to monitor OpenEBS volumes. In that post, I primarily talked about monitoring volume controllers of the storage engines jiva and cstor. In this post, I want to cover how to monitor cstor-pools using Prometheus. From this, we can pull metrics from maya-exporter sidecar of cstor-pool pods and Grafana to visualize the metrics.
Monitoring cstor pools
It’s been almost a year since we released cstor, and we feel there is a need for a continuous monitoring tool to monitor cstor-pool containers to obtain details about various metrics such as health of cstor-pool container, number of reads/writes, number of io’s, rebuilding status, throughput, latency etc. So, we introduced maya-exporter in the 0.9.0 release as a sidecar of cstor-pool pod as well, which collects metrics from cstor-pool container.
Prerequisites
PVC is optional because the pool should be available before creating pvc’s.
Steps:
Note: I am using NodePort here only for demonstration purposes. Please use service names or ingress to access if you wish to expose the Grafana and Prometheus.
If you have already read my previous blog, many of the steps are very similar. The only difference is that the dashboard json for pool metrics is different and we have added configurations to pull metrics from OpenEBS pools.
I hope you have enjoyed this post and your pool dashboard is up and running. If you encounter any issues, don’t hesitate to reach out to us on slack or comment. There are many other important metrics that are planned for future releases, which will help in visualizing OpenEBS from various perspectives.
That’s all folks! 😃