From 3e19cd8b61a7f2c277a10bcd4c504b101a19376c Mon Sep 17 00:00:00 2001 From: Aleksei Borzenkov Date: Tue, 14 Oct 2025 14:15:38 +0300 Subject: [PATCH] Use a separate alerts_exception counter for unhandled exceptions (#26813) --- ydb/core/tablet_flat/flat_executor.cpp | 1 + ydb/core/tablet_flat/tablet_flat_executed.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ydb/core/tablet_flat/flat_executor.cpp b/ydb/core/tablet_flat/flat_executor.cpp index a729637ed3f8..97451b91a001 100644 --- a/ydb/core/tablet_flat/flat_executor.cpp +++ b/ydb/core/tablet_flat/flat_executor.cpp @@ -188,6 +188,7 @@ void TExecutor::Registered(TActorSystem *sys, const TActorId&) GetServiceCounters(AppData()->Counters, "tablets")->GetCounter("alerts_scan_broken", true); GetServiceCounters(AppData()->Counters, "tablets")->GetCounter("alerts_boot_nodata", true); GetServiceCounters(AppData()->Counters, "tablets")->GetCounter("alerts_broken", true); + GetServiceCounters(AppData()->Counters, "tablets")->GetCounter("alerts_exception", true); } void TExecutor::PassAway() { diff --git a/ydb/core/tablet_flat/tablet_flat_executed.cpp b/ydb/core/tablet_flat/tablet_flat_executed.cpp index 8e0602274419..e13f8549d154 100644 --- a/ydb/core/tablet_flat/tablet_flat_executed.cpp +++ b/ydb/core/tablet_flat/tablet_flat_executed.cpp @@ -28,7 +28,7 @@ bool TTabletExecutedFlat::OnUnhandledException(const std::exception& e) { "Tablet " << TabletID() << " unhandled exception " << TypeName(e) << ": " << e.what() << '\n' << TBackTrace::FromCurrentException().PrintToString()); - GetServiceCounters(AppData(ctx)->Counters, "tablets")->GetCounter("alerts_broken", true)->Inc(); + GetServiceCounters(AppData(ctx)->Counters, "tablets")->GetCounter("alerts_exception", true)->Inc(); HandlePoison(ctx); return true;