@@ -1106,19 +1106,15 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
11061106 static void Check (TSelfCheckContext& context, const NKikimrWhiteboard::TSystemStateInfo::TPoolStats& poolStats) {
11071107 if (poolStats.name () == " System" || poolStats.name () == " IC" || poolStats.name () == " IO" ) {
11081108 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);
11101110 } 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);
11141112 } else {
11151113 context.ReportStatus (Ydb::Monitoring::StatusFlag::GREEN);
11161114 }
11171115 } else {
11181116 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);
11221118 } else {
11231119 context.ReportStatus (Ydb::Monitoring::StatusFlag::GREEN);
11241120 }
@@ -1188,7 +1184,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
11881184 break ;
11891185 case TNodeTabletState::ETabletState::RestartsTooOften:
11901186 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);
11921188 break ;
11931189 case TNodeTabletState::ETabletState::Dead:
11941190 computeTabletStatus.set_state (" DEAD" );
@@ -1227,7 +1223,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
12271223
12281224 TSelfCheckContext rrContext (&context, " NODE_UPTIME" );
12291225 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);
12311227 } else if (databaseState.NodeRestartsPerPeriod [nodeId] >= 10 ) {
12321228 rrContext.ReportStatus (Ydb::Monitoring::StatusFlag::YELLOW, " The number of node restarts has increased" , ETags::Uptime);
12331229 } else {
0 commit comments