2020-01-29 15:25:55 +05:30
---
title : OpenShift Common Issues
---
## Enable Monitoring in the Storage Dashboard
OpenShift Console uses OpenShift Prometheus for monitoring and populating data in Storage Dashboard. Additional configuration is required to monitor the Ceph Cluster from the storage dashboard.
2020-03-18 11:55:07 -06:00
1. Change the monitoring namespace to `openshift-monitoring`
2020-01-29 15:25:55 +05:30
2024-04-22 11:54:27 -06:00
Change the namespace of the RoleBinding `rook-ceph-metrics` from `rook-ceph` to `openshift-monitoring` for the `prometheus-k8s` ServiceAccount in [rbac.yaml ](https://github.com/rook/rook/blob/master/deploy/examples/monitoring/rbac.yaml#L70 ).
2020-01-29 15:25:55 +05:30
2024-04-22 11:54:27 -06:00
```yaml
subjects:
- kind: ServiceAccount
name: prometheus-k8s
namespace: openshift-monitoring
` ``
2020-03-18 11:55:07 -06:00
2. Enable Ceph Cluster monitoring
2022-05-12 19:29:40 +02:00
Follow [ceph-monitoring/prometheus-alerts](../Storage-Configuration/Monitoring/ceph-monitoring.md#prometheus-alerts).
2020-03-18 11:55:07 -06:00
3. Set the required label on the namespace
2020-01-29 15:25:55 +05:30
2022-05-12 19:29:40 +02:00
` ``console
oc label namespace rook-ceph "openshift.io/cluster-monitoring=true"
` ``
2020-01-29 15:25:55 +05:30
## Troubleshoot Monitoring Issues
2022-05-12 19:29:40 +02:00
!!! attention
Switch to ` rook-ceph` namespace using ` oc project rook-ceph`.
2020-01-29 15:25:55 +05:30
1. Ensure ceph-mgr pod is Running
2021-02-18 18:24:22 +05:30
` ``console
2022-05-12 19:29:40 +02:00
$ oc get pods -l app=rook-ceph-mgr
NAME READY STATUS RESTARTS AGE
rook-ceph-mgr 1/1 Running 0 14h
2020-01-29 15:25:55 +05:30
` ``
2. Ensure service monitor is present
2021-02-18 18:24:22 +05:30
` ``console
2022-05-12 19:29:40 +02:00
$ oc get servicemonitor rook-ceph-mgr
NAME AGE
rook-ceph-mgr 14h
2020-01-29 15:25:55 +05:30
` ``
2022-05-12 19:29:40 +02:00
3. Ensure the prometheus rules object has been created
2020-01-29 15:25:55 +05:30
2021-02-18 18:24:22 +05:30
` ``console
2022-05-12 19:29:40 +02:00
$ oc get prometheusrules -l prometheus=rook-prometheus
NAME AGE
prometheus-ceph-rules 14h
2020-01-29 15:25:55 +05:30
` ``