feat: support for mine NVMe Volatile Memory Backup#293
Open
k0ste wants to merge 1 commit intoprometheus-community:masterfrom
Open
feat: support for mine NVMe Volatile Memory Backup#293k0ste wants to merge 1 commit intoprometheus-community:masterfrom
k0ste wants to merge 1 commit intoprometheus-community:masterfrom
Conversation
Contributor
Author
This PR add's metric, when NVMe PLP is failed (bool)
Further use of the drive is unsafe; if the power fails, the data may be lost.
Healthy device
```console
[root@host]# smartctl --json --info --capabilities --health --attributes --tolerance=verypermissive --nocheck=standby --format=brief --log=error --device=nvme /dev/nvme1 | jq .smart_status
{
"passed": true,
"nvme": {
"value": 0
}
}
```
PLP failed
```console
[root@host]# smartctl --json --info --capabilities --health --attributes --tolerance=verypermissive --nocheck=standby --format=brief --log=error --device=nvme /dev/nvme0 | jq .smart_status
{
"passed": false,
"nvme": {
"value": 16,
"spare_below_threshold": false,
"temperature_above_or_below_threshold": false,
"reliability_degraded": false,
"media_read_only": false,
"volatile_memory_backup_failed": true,
"persistent_memory_region_unreliable": false,
"other": 0
}
}
```
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR add's metric, when NVMe PLP is failed (bool). Further use of the drive is unsafe; if the power fails, the data may be lost.
Healthy device
PLP failed