## Enabling storage monitoring

By default, storage monitoring is **disabled** (replicas set to 0). Administrators can enable it by scaling the deployment to 1 replica using the following `kubectl` command:

```bash
kubectl scale deployment/storage-monitor --namespace cdrplatform --replicas=1
```

To enable StorageMonitoring in the Portal, set the `EnabledPages` config in the `portal-configuration` configmap.
```bash
enabled_pages="SystemSettings\,PolicySettings\,SharePointMonitoring"
helm get values -n cdrplatform cdrplatform-portal > portal.yaml
helm upgrade --install cdrplatform-portal cdrplatform-portal --set configuration.EnabledPages="${enabled_pages}" \
-f portal.yaml -n cdrplatform
```


### Integration requirements

Once enabled, to ensure storage monitoring integrates correctly with external cloud storage services, one of the following conditions must be met:

- The cluster must have a **publicly accessible ingress address**,

> **or**

- The **IP addresses** of your storage service must be **whitelisted** to allow inbound connectivity.

For example, integration with **SharePoint** requires access to specific **Microsoft Graph API IP ranges**, which must be reachable by the storage monitoring component.