Using Rancher, you can monitor the state and processes of your cluster nodes, Kubernetes components, and software deployments through integration with Prometheus, a leading open-source monitoring solution.
Add Longhorn Metrics to the Rancher Monitoring System
If you are using Rancher to manage your Kubernetes and already enabled Rancher monitoring, you can add Longhorn metrics to Rancher monitoring by simply deploying the following ServiceMonitor:
You can then set up a Grafana dashboard for visualization.
You can also set up alerts in Rancher UI.