-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from MalloZup/sbd-timeouts
Implement SBD watchdog and msgwait metrics
- Loading branch information
Showing
5 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
cat <<EOF | ||
==Dumping header on disk /dev/vdc | ||
Header version : 2.1 | ||
UUID : 1ed3171d-066d-47ca-8f76-aec25d9efed4 | ||
Number of slots : 255 | ||
Sector size : 512 | ||
Timeout (watchdog) : 9 | ||
Timeout (allocate) : 2 | ||
Timeout (loop) : 1 | ||
Timeout (msgwait) : 10 | ||
==Header on disk /dev/vdc is dumped | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
# HELP ha_cluster_sbd_devices SBD devices; one line per device | ||
# TYPE ha_cluster_sbd_devices gauge | ||
ha_cluster_sbd_devices{device="/dev/vdc",status="healthy"} 1 | ||
ha_cluster_sbd_devices{device="/dev/vdd",status="unhealthy"} 1 | ||
ha_cluster_sbd_devices{device="/dev/vdd",status="healthy"} 1 | ||
# HELP ha_cluster_sbd_timeouts SBD timeouts for each device and type | ||
# TYPE ha_cluster_sbd_timeouts gauge | ||
ha_cluster_sbd_timeouts{device="/dev/vdc",type="msgwait"} 10 | ||
ha_cluster_sbd_timeouts{device="/dev/vdc",type="watchdog"} 9 | ||
ha_cluster_sbd_timeouts{device="/dev/vdd",type="msgwait"} 10 | ||
ha_cluster_sbd_timeouts{device="/dev/vdd",type="watchdog"} 9 |