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

Implemented self-monitoring logic for eBPF-related plugins #1799

Merged
merged 11 commits into from
Oct 28, 2024

Conversation

KayzzzZ
Copy link
Collaborator

@KayzzzZ KayzzzZ commented Oct 10, 2024

No description provided.

core/monitor/metric_constants/RunnerMetrics.cpp Outdated Show resolved Hide resolved
core/ebpf/SelfMonitor.cpp Show resolved Hide resolved
core/ebpf/SelfMonitor.cpp Outdated Show resolved Hide resolved
@KayzzzZ KayzzzZ force-pushed the ql/dev-selfmonitor-new branch 2 times, most recently from 25cab4e to c637478 Compare October 14, 2024 14:20
core/plugin/input/InputNetworkSecurity.cpp Outdated Show resolved Hide resolved
core/ebpf/SelfMonitor.cpp Outdated Show resolved Hide resolved
core/ebpf/SelfMonitor.cpp Outdated Show resolved Hide resolved
core/ebpf/SelfMonitor.cpp Outdated Show resolved Hide resolved
core/ebpf/SelfMonitor.cpp Outdated Show resolved Hide resolved
core/ebpf/SelfMonitor.cpp Outdated Show resolved Hide resolved
core/ebpf/eBPFServer.cpp Show resolved Hide resolved
@KayzzzZ
Copy link
Collaborator Author

KayzzzZ commented Oct 21, 2024

image

@henryzhx8 henryzhx8 added the enhancement Feature enhancement label Oct 22, 2024
@henryzhx8 henryzhx8 added this to the v2.2 milestone Oct 22, 2024
@KayzzzZ
Copy link
Collaborator Author

KayzzzZ commented Oct 28, 2024

image

@KayzzzZ
Copy link
Collaborator Author

KayzzzZ commented Oct 28, 2024

image

@Takuka0311
Copy link
Collaborator

image

runner这里有一个label,metric_category需要补一下


const string METRIC_PLUGIN_EBPF_LOSS_KERNEL_EVENTS_TOTAL = "plugin_ebpf_loss_kernel_events_total";
const string METRIC_PLUGIN_EBPF_NETWORK_OBSERVER_CONNTRACKER_NUM = "plugin_network_observer_conntracker_num";
const string METRIC_PLUGIN_EBPF_NETWORK_OBSERVER_WORKER_HANDLE_EVENTS_TOTAL = "plugin_network_observer_worker_handle_events_total";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

命名后面 @Takuka0311 统一按照规范改一次

for (int i = 0; i < int(nami::PluginType::MAX); i ++) {
if (mPluginProject[i] != "") {
res += mPluginProject[i];
res += "";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

少了空格

/**********************************************************
* ebpf server
**********************************************************/
const string METRIC_RUNNER_EBPF_START_PLUGIN_TOTAL = "runner_start_plugin_total";
Copy link
Collaborator

@messixukejia messixukejia Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个指标项看上去更应该是公共的 @Takuka0311

@messixukejia
Copy link
Collaborator

CI失败处理下

@Takuka0311 Takuka0311 merged commit ae0f53f into alibaba:main Oct 28, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants