-
Notifications
You must be signed in to change notification settings - Fork 735
switch health check to storage sys views #4848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
⚪
|
|
⚪
|
|
⚪
|
|
⚪
|
|
⚪
|
|
⚪
|
| } | ||
| context.Location.mutable_storage()->mutable_pool()->mutable_group()->mutable_vdisk()->mutable_pdisk()->begin()->set_path(pDisk.GetPath()); | ||
| const auto& status = pDisk.GetStatusV2(); | ||
| if (status == "ACTIVE") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend avoiding direct comparisons with strings and instead converting string values to enum, as this reduces the likelihood of errors.
| {ETags::PDiskSpace}); | ||
| break; | ||
| }*/ | ||
| if (spaceStatus != Ydb::Monitoring::StatusFlag::GREEN) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the first record will have the necessary PDiskSpace tag; it could be PDiskState as well
There is well hidden ReportWithMaxChildStatus method
I think you can use it like
ReportWithMaxChildStatus("VDisk have space issue", ETags::VDiskState, ETags::PDiskSpace});
instead
|
⚪
|
|
⚪
|
Changelog entry
...
Changelog category
Additional information
...