TSG-23843 请sce提供健康状态查询的HTTP服务

This commit is contained in:
luwenpeng
2024-11-20 14:27:40 +08:00
parent 1372b39994
commit 5ae3220e13
10 changed files with 150 additions and 3 deletions

View File

@@ -10,6 +10,7 @@
#include "utils.h"
#include "sf_metrics.h"
#include "global_metrics.h"
#include "http_healthcheck.h"
struct breakpad_instance *g_breakpad = NULL;
static int is_need_stop = 0;
@@ -212,6 +213,8 @@ int main(int argc, char **argv)
}
}
http_healthcheck_server_start(profile);
timestamp_update(ctx->ts);
ts_update_interval = timestamp_update_interval_ms(ctx->ts);
g_metrics_last_send_ts = timestamp_get_msec(ctx->ts);
@@ -230,6 +233,7 @@ int main(int argc, char **argv)
}
error_out:
http_healthcheck_server_stop();
for (int i = 0; i < ctx->nr_worker_threads; i++)
{
while (1)