Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Commit

Permalink
Add support for nonredundant arrays (netdata#4923)
Browse files Browse the repository at this point in the history
* Add support for nonredundant arrays

* Change charts representation and add an alarm

* Minor cleanup for chart priorities

* Add configuration options

* Make charts obsolete when raid diappears

* Fix small bugs, add config option for making charts obsolete

* Fix mdstat parsing
  • Loading branch information
vlvkobal committed Dec 13, 2018
1 parent 2e6d26b commit f810850
Show file tree
Hide file tree
Showing 4 changed files with 492 additions and 286 deletions.
11 changes: 6 additions & 5 deletions collectors/all.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,12 @@
// MDSTAT

#define NETDATA_CHART_PRIO_MDSTAT_HEALTH 9000
#define NETDATA_CHART_PRIO_MDSTAT_DISKS 9001 // 5 charts per raid
#define NETDATA_CHART_PRIO_MDSTAT_MISMATCH 9002
#define NETDATA_CHART_PRIO_MDSTAT_OPERATION 9003
#define NETDATA_CHART_PRIO_MDSTAT_FINISH 9004
#define NETDATA_CHART_PRIO_MDSTAT_SPEED 9005
#define NETDATA_CHART_PRIO_MDSTAT_NONREDUNDANT 9001
#define NETDATA_CHART_PRIO_MDSTAT_DISKS 9002 // 5 charts per raid
#define NETDATA_CHART_PRIO_MDSTAT_MISMATCH 9003
#define NETDATA_CHART_PRIO_MDSTAT_OPERATION 9004
#define NETDATA_CHART_PRIO_MDSTAT_FINISH 9005
#define NETDATA_CHART_PRIO_MDSTAT_SPEED 9006

// Linux Power Supply
#define NETDATA_CHART_PRIO_POWER_SUPPLY_CAPACITY 9500 // 4 charts per power supply
Expand Down
12 changes: 10 additions & 2 deletions collectors/proc.plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,20 @@ So, to disable performance metrics for all loop devices you could add `performan
* finish in minutes
* speed in megabytes/s

6. **Nonredundant array availability**

#### configuration

```
[plugin:proc:/proc/mdstat]
# mismatch_cnt filename to monitor = /sys/block/%s/md/mismatch_cnt
# filename to monitor = /proc/mdstat
# faulty devices = yes
# nonredundant arrays availability = yes
# mismatch count = auto
# disk stats = yes
# operation status = yes
# make charts obsolete = yes
# filename to monitor = /proc/mdstat
# mismatch_cnt filename to monitor = /sys/block/%s/md/mismatch_cnt
```

## Monitoring CPUs
Expand Down
Loading

0 comments on commit f810850

Please sign in to comment.