---
title: Charmhub | Deploy Hardware Observer using Charmhub - The Open Operator Collection
description: Deploy the latest version of Hardware Observer on any cloud.
url: https://charmhub.io/hardware-observer/docs/metrics-and-alerts-megaraid
---

# Hardware Observer

[Canonical BootStack Charmers](https://charmhub.io/publisher/bootstack-charmers "View all packages from Canonical BootStack Charmers")

* [Canonical BootStack Charmers](https://charmhub.io/publisher/bootstack-charmers "View all packages from Canonical BootStack Charmers")

Platform:

26.04

24.04

22.04

20.04

18.04

stable 894

```
juju deploy hardware-observer
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Relevant links

* [Homepage](https://github.com/canonical/hardware-observer-operator)

---

#### Contacts

* [Submit a bug](https://github.com/canonical/hardware-observer-operator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

## [Metrics](https://charmhub.io/hardware-observer/docs/metrics-and-alerts-megaraid#p-26506-metrics)

The details of the metrics exposed by Hardware Observer for MegaRAID Controllers are as follows:

| Metric Name | Description | Labels |
| --- | --- | --- |
| megaraid\_controllers | Number of controllers |  |
| megaraid\_virtual\_drives | Number of virtual drives | controller\_id |
| megaraid\_ready\_virtual\_drives | Number of ready virtual drives | controller\_id |
| megaraid\_unready\_virtual\_drives | Number of unready virtual drives | controller\_id |
| megaraid\_virtual\_drive\_info | Shows the information about the virtual drive | controller\_id, drive\_group, virtual\_drive\_group, state, raid\_level, name |
| megaraid\_physical\_devices | Number of physical devices | controller\_id |
| megaraid\_physical\_device\_info | Shows the information about the physical device | controller\_id, enclosure\_id, slot\_id, state, drive\_type |
| megaraid\_enclosure\_info | Shows the information about the enclosure | controller\_id, enclosure\_id, num\_slots, state |
| storcli\_command\_success | Indicates if the storcli command is successful or not |  |

## [Alerts](https://charmhub.io/hardware-observer/docs/metrics-and-alerts-megaraid#p-26506-alerts)

The details of the alerts that are provided by Hardware Observer for MegaRAID Controllers are as follows:

| Alert Rule Name | Description | Severity |
| --- | --- | --- |
| StorcliCommandFailed | Failed to run storcli. | critical |
| MegaRAIDControllerNotFound | MegaRAID controller not found. | warning |
| MegaRAIDVirtualDriveNotOptimal | MegaRAID virtual drives are not in optimal state. | warning |

---
