@@ -1106,19 +1106,15 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
1106
1106
static void Check (TSelfCheckContext& context, const NKikimrWhiteboard::TSystemStateInfo::TPoolStats& poolStats) {
1107
1107
if (poolStats.name () == " System" || poolStats.name () == " IC" || poolStats.name () == " IO" ) {
1108
1108
if (poolStats.usage () >= 0.99 ) {
1109
- context.ReportStatus (Ydb::Monitoring::StatusFlag::RED , " Pool usage over 99%" , ETags::OverloadState);
1109
+ context.ReportStatus (Ydb::Monitoring::StatusFlag::ORANGE , " Pool usage is over than 99%" , ETags::OverloadState);
1110
1110
} else if (poolStats.usage () >= 0.95 ) {
1111
- context.ReportStatus (Ydb::Monitoring::StatusFlag::ORANGE, " Pool usage over 95%" , ETags::OverloadState);
1112
- } else if (poolStats.usage () >= 0.90 ) {
1113
- context.ReportStatus (Ydb::Monitoring::StatusFlag::YELLOW, " Pool usage over 90%" , ETags::OverloadState);
1111
+ context.ReportStatus (Ydb::Monitoring::StatusFlag::YELLOW, " Pool usage is over than 95%" , ETags::OverloadState);
1114
1112
} else {
1115
1113
context.ReportStatus (Ydb::Monitoring::StatusFlag::GREEN);
1116
1114
}
1117
1115
} else {
1118
1116
if (poolStats.usage () >= 0.99 ) {
1119
- context.ReportStatus (Ydb::Monitoring::StatusFlag::ORANGE, " Pool usage over 99%" , ETags::OverloadState);
1120
- } else if (poolStats.usage () >= 0.95 ) {
1121
- context.ReportStatus (Ydb::Monitoring::StatusFlag::YELLOW, " Pool usage over 95%" , ETags::OverloadState);
1117
+ context.ReportStatus (Ydb::Monitoring::StatusFlag::YELLOW, " Pool usage is over than 99%" , ETags::OverloadState);
1122
1118
} else {
1123
1119
context.ReportStatus (Ydb::Monitoring::StatusFlag::GREEN);
1124
1120
}
@@ -1188,7 +1184,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
1188
1184
break ;
1189
1185
case TNodeTabletState::ETabletState::RestartsTooOften:
1190
1186
computeTabletStatus.set_state (" RESTARTS_TOO_OFTEN" );
1191
- tabletContext.ReportStatus (Ydb::Monitoring::StatusFlag::RED , " Tablets are restarting too often" , ETags::TabletState);
1187
+ tabletContext.ReportStatus (Ydb::Monitoring::StatusFlag::ORANGE , " Tablets are restarting too often" , ETags::TabletState);
1192
1188
break ;
1193
1189
case TNodeTabletState::ETabletState::Dead:
1194
1190
computeTabletStatus.set_state (" DEAD" );
@@ -1227,7 +1223,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
1227
1223
1228
1224
TSelfCheckContext rrContext (&context, " NODE_UPTIME" );
1229
1225
if (databaseState.NodeRestartsPerPeriod [nodeId] >= 30 ) {
1230
- rrContext.ReportStatus (Ydb::Monitoring::StatusFlag::RED , " Node is restarting too often" , ETags::Uptime);
1226
+ rrContext.ReportStatus (Ydb::Monitoring::StatusFlag::ORANGE , " Node is restarting too often" , ETags::Uptime);
1231
1227
} else if (databaseState.NodeRestartsPerPeriod [nodeId] >= 10 ) {
1232
1228
rrContext.ReportStatus (Ydb::Monitoring::StatusFlag::YELLOW, " The number of node restarts has increased" , ETags::Uptime);
1233
1229
} else {
0 commit comments