自监控能力演化路线 #1928
Takuka0311
started this conversation in
Ideas
自监控能力演化路线
#1928
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
背景
目前,我们将LoongCollector的自监控功能划分为两个模块:指标与告警。在iLogtail时期,两者的能力均有欠缺,很多开发者希望通过指标来观测iLogtail状态、获取告警来处理iLogtail报错,都无从下手:
在LoongCollector时代,我们希望改变这一现状,让自监控能力可以被开发者们方便地用起来。
目标
我们希望所有的自监控数据,可以以标准的Pipeline方式获取到。为此,我们计划做如下的事情:
架构
指标
C++的指标通过MetricRecord类来记录,Go的指标记录方式可以参考文档。C++的发送线程会定时拉取C++和Go的指标并通过SelfMonitorServer作聚合、过滤并输出。
指标当前分为六个维度:
指标模块目前已经Input插件化,可以通过配置原生插件InputIntervalMetrics来获取所有指标。
告警
暂无,告警当前C++部分逻辑在 core/monitor/AlarmManager.h ,仅做保存,无法发送;Go部分是Go内置流水线,在pluginmanager/self_telemetry_alarm.go。
进展
Beta Was this translation helpful? Give feedback.
All reactions