Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add self monitor metric inner pipeline #1913

Merged
merged 15 commits into from
Nov 27, 2024
8 changes: 1 addition & 7 deletions core/application/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "file_server/event_handler/LogInput.h"
#include "go_pipeline/LogtailPlugin.h"
#include "logger/Logger.h"
#include "monitor/MetricExportor.h"
#include "monitor/Monitor.h"
#include "pipeline/PipelineManager.h"
#include "pipeline/plugin/PluginRegistry.h"
Expand All @@ -67,7 +66,6 @@
DEFINE_FLAG_BOOL(ilogtail_disable_core, "disable core in worker process", true);
DEFINE_FLAG_INT32(file_tags_update_interval, "second", 1);
DEFINE_FLAG_INT32(config_scan_interval, "seconds", 10);
DEFINE_FLAG_INT32(profiling_check_interval, "seconds", 60);
DEFINE_FLAG_INT32(tcmalloc_release_memory_interval, "force release memory held by tcmalloc, seconds", 300);
DEFINE_FLAG_INT32(exit_flushout_duration, "exit process flushout duration", 20 * 1000);
DEFINE_FLAG_INT32(queue_check_gc_interval_sec, "30s", 30);
Expand Down Expand Up @@ -266,7 +264,7 @@ void Application::Start() { // GCOVR_EXCL_START

ProcessorRunner::GetInstance()->Init();

time_t curTime = 0, lastProfilingCheckTime = 0, lastConfigCheckTime = 0, lastUpdateMetricTime = 0,
time_t curTime = 0, lastConfigCheckTime = 0, lastUpdateMetricTime = 0,
lastCheckTagsTime = 0, lastQueueGCTime = 0;
#ifndef LOGTAIL_NO_TC_MALLOC
time_t lastTcmallocReleaseMemTime = 0;
Expand All @@ -291,10 +289,6 @@ void Application::Start() { // GCOVR_EXCL_START
}
lastConfigCheckTime = curTime;
}
if (curTime - lastProfilingCheckTime >= INT32_FLAG(profiling_check_interval)) {
MetricExportor::GetInstance()->PushMetrics(false);
lastProfilingCheckTime = curTime;
}
#ifndef LOGTAIL_NO_TC_MALLOC
if (curTime - lastTcmallocReleaseMemTime >= INT32_FLAG(tcmalloc_release_memory_interval)) {
MallocExtension::instance()->ReleaseFreeMemory();
Expand Down
1 change: 0 additions & 1 deletion core/file_server/EventDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include "file_server/polling/PollingDirFile.h"
#include "file_server/polling/PollingModify.h"
#include "monitor/AlarmManager.h"
#include "monitor/MetricExportor.h"
#include "protobuf/sls/metric.pb.h"
#include "protobuf/sls/sls_logs.pb.h"
#ifdef APSARA_UNIT_TEST_MAIN
Expand Down
283 changes: 0 additions & 283 deletions core/monitor/MetricExportor.cpp

This file was deleted.

55 changes: 0 additions & 55 deletions core/monitor/MetricExportor.h

This file was deleted.

Loading
Loading