diff options
author | pnv1 <pnv@ydb.tech> | 2022-09-06 15:57:32 +0300 |
---|---|---|
committer | pnv1 <pnv@ydb.tech> | 2022-09-06 15:57:32 +0300 |
commit | 505c8099fd67fafc495541d9451047730287d2a5 (patch) | |
tree | 68bab25013faa135ad4a2cb4f816288737048e2f /library/cpp/svnversion | |
parent | 72277b0f60b65f7ff162686fcac08becc2adc0d1 (diff) | |
download | ydb-505c8099fd67fafc495541d9451047730287d2a5.tar.gz |
Add healthcheck to YDB CLI
%%
pnv1@mr-nvme-testing-04:~/arcadia$ kikimr/public/tools/ydb/ydb -p ydb-ru mon healthcheck
Healthcheck status: GOOD
pnv1@mr-nvme-testing-04:~/arcadia$ kikimr/public/tools/ydb/ydb -p ydb-ru mon healthcheck --format json
{
"self_check_result": "GOOD"
}
pnv1@mr-nvme-testing-04:~/arcadia$ kikimr/public/tools/ydb/ydb -p ydb-vla-dev02 mon healthcheck Healthcheck status: DEGRADED
For more info use "--format json" option
pnv1@mr-nvme-testing-04:~/arcadia$ kikimr/public/tools/ydb/ydb -p ydb-vla-dev02 mon healthcheck --format json
{
"self_check_result": "DEGRADED",
"issue_log": [
{
"id": "YELLOW-be81",
"status": "YELLOW",
"message": "Database has storage issues",
"location": {
"database": {
"name": "/dev02/home/xenoxeno/db1"
}
},
"reason": [
""
],
"type": "DATABASE",
"level": 1
},
{
"id": "",
"status": "YELLOW",
"message": "Storage degraded",
"location": {
"database": {
"name": "/dev02/home/xenoxeno/db1"
}
},
...
%%
Diffstat (limited to 'library/cpp/svnversion')
0 files changed, 0 insertions, 0 deletions