Skip to content

Commit 8ae4726

Browse files
add viewer healthcheck path (#11019) - merge stable-24-3 (#11045)
1 parent ccf6536 commit 8ae4726

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ydb/core/viewer/viewer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "viewer.h"
22
#include "counters_hosts.h"
3+
#include "viewer_healthcheck.h"
34
#include "json_handlers.h"
45
#include "log.h"
56
#include "viewer_request.h"
@@ -522,6 +523,10 @@ class TViewer : public TActorBootstrapped<TViewer>, public IViewer {
522523
ctx.ExecutorThread.RegisterActor(new TCountersHostsList(this, ev));
523524
return;
524525
}
526+
if (path.StartsWith("/healthcheck")) { // healthcheck no auth scrapping
527+
ctx.ExecutorThread.RegisterActor(new TJsonHealthCheck(this, ev));
528+
return;
529+
}
525530
// TODO: check path validity
526531
// TODO: cache
527532
if (msg->Request.GetPathInfo().StartsWith('/')) {

0 commit comments

Comments
 (0)