跳到正文
FunCoding

huatuo

eBPF-based observability for the Linux kernel & Agent sandbox, with built-in AI agent and MCP server. 🚀🚀

Star
1,154
许可证
Apache-2.0
最近提交
2026年11月30日

Cube Sandbox Logo

HUATUO 华佗

Kernel-wide Insight, Instant Observability, AutoTracing, Continuous Profiling

GitHub Stars Docker Pulls GitHub Issues Apache 2.0 License PRs Welcome CNCF Landscape

Fast startup Hardware-level observability large scale

中文文档 · Quick Start · Documentation ·


What is HUATUO

HUATUO, named after Hua Tuo, a legendary physician in ancient China, is a cloud-native OS observability project open-sourced by DiDi and incubated under the CCF. It provides kernel-level observability for general-purpose cloud-native computing, AI computing, and bare-metal infrastructure services. By integrating Linux kernel dynamic tracing technologies such as kprobes, tracepoints, ftrace, and eBPF, HUATUO provides kernel-wide visibility through finer-grained metrics, automatic runtime context capture in the kernel, and intelligent tracing. Deployed at scale in DiDi's production environment, HUATUO helps troubleshoot system failures and improves the high availability and performance of cloud-native operating systems.

HUATUO is now listed in the CNCF Landscape.

Key Features

  • Kernel-Wide Insight: Leverages eBPF to keep performance overhead below 1%, delivering full-stack, low-level observability insights into Linux kernel subsystems such as memory management, CPU scheduling, networking, and block I/O.
  • Instant Observability: An event-driven runtime context capture mechanism that instruments kernel slow paths. It automatically triggers on events such as page faults, scheduling delays, generating detailed data for immediate analysis.
  • AutoTracing: Employs automated snapshot retention to resolve performance jitter typical in cloud‑native and AI infrastructure environments, addressing issues such as CPU idle drops, CPU system-time spikes, I/O surges, and load average spikes.
  • Continuous Profiling: A comprehensive and continuous performance profiling of the operating system and applications, covering CPU, Memory, I/O, and Locks. This drives business innovation and plays a key role in Chaos, HA and Stability Engineering.
  • Heterogeneous Computing Hardware: Encompassing core system components such as CPUs, memory, PCIe interconnects, network adapters, and storage, alongside specialized AI accelerators including GPUs and NPUs.
  • Ecosystem Integration: Integrates with mainstream open-source observability stacks such as Prometheus, Grafana, Pyroscope, and Elasticsearch, and automatically associates Kubernetes container labels/annotations. This is achieved through zero-instrumentation, kernel-level eBPF programming, ensuring broad compatibility across hardware platforms and Linux distributions.

Big Picture

Ecosystem

Getting Started

  • Quick Run

    To launch the HUATUO service with Docker:

      $ docker run --privileged --pid=host --cgroupns=host --network=host -v /sys:/sys -v /run:/run huatuo/huatuo-bamai:latest
    

    To pull metrics from another terminal:

      $ curl -s localhost:19704/metrics
    
  • Quick Setup

    To launch the full stack (Elasticsearch, Prometheus, Grafana, and huatuo) using Docker Compose:

      $ make compose-dev-up
    

    Once running, access the monitoring dashboard at http://localhost:3000.

  • NOTE

    Do not deploy images with the latest tag to production environments, as this is a development and testing image. Use a formal release image or binary.

Kernel Versions

The project supports kernel version 4.18 and later. The following kernel and OS distribution are primarily tested.

HUATUOKernelOS
1.0.04.18.xCentOS 8.x
2.4.04.18.xRocky Linux 8.10
1.0.05.4.xOpenCloudOS V8
1.0.05.4.xUbuntu 20.04.6 LTS
1.0.05.10.xAnolis OS 8.10
1.0.05.10.xopenEuler 22.03 LTS-SP4
2.4.05.14.xRocky Linux 9.8
1.0.05.15.xUbuntu 22.04.5 LTS
2.4.06.1.xDebian 12 (bookworm)
1.0.06.6.xAnolis OS 23.3
1.0.06.6.xOpenCloudOS V9
1.0.06.6.xopenEuler 24.03 LTS-SP4
1.0.06.8.xUbuntu 24.04.4 LTS
2.4.06.12.xDebian 13 (trixie)
1.0.06.14.xFedora 42
2.4.06.19.xFedora Linux 44
2.3.07.0.xUbuntu 26.04 LTS

Community Maintainers

NameRoleFocus
Tonghao ZhangFounder & MaintainerLinux kernel developer and contributor to eBPF, networking, OVS, and DPDK.
Jason XingTOC MemberLinux kernel Netdev reviewer, Netdev Conf program committee member, LPC Observability microconference organizer, and IETF TCP RST Diagnostic Payload founder.
Lance YangTOC MemberLinux kernel developer, THP and RMAP reviewer, and hung task detector maintainer.
Leon HwangTOC MemberLinux kernel developer, eBPF subsystem contributor, and author of bpfsnoop.
Menglong DongTOC MemberLinux kernel developer, eBPF and networking subsystem contributor, and author of nettrace.
Nan LiMaintainerLinux kernel developer and RAID subsystem reviewer.

Co-Building

  • ❇️ We welcome all users, developers, companies, and organizations to use Huatuo, report bugs, submit feature requests, share best practices, and help us build a professional and vibrant open-source community.
  • ❤️ Contributors

Go Client

The public Go client is in client/. Node client files use the node_ prefix.

package main

import (
	"context"
	"encoding/json"

	nodeapi "github.com/ccfos/huatuo/apis/v1/node"
	"github.com/ccfos/huatuo/client"
)

func updateNodeConfig(ctx context.Context, address client.NodeAddress) error {
	nodeClient, err := client.NewNode(&client.NodeConfig{
		BearerToken: "node-token",
	})
	if err != nil {
		return err
	}
	return nodeClient.UpdateConfig(ctx, address, &nodeapi.UpdateConfigRequest{
		Config: map[string]json.RawMessage{
			"Runtime.CPULimitCores": json.RawMessage("1.5"),
		},
	})
}

Documentation

For more information, visit https://docs.huatuo.tech

Contact Us

  • WeChat Group and Official Account:

License

This project is open source under the Apache License 2.0. The BPF code is licensed under the GPL license.

同类 MCP Server

Netdata

Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.

NEnetdata/netdata82k近 7 天新增 123 个 star

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

JAJanDeDobbeleer/oh-my-posh24k近 7 天新增 29 个 star

Coder

Manage Coder workspaces, templates, and cloud development environments

COcoder/coder18k近 7 天新增 57 个 star

docker-android

Android in docker solution with noVNC supported, video recording, mcp server and AI-agent

BUbudtmo/docker-android16k近 7 天新增 18 个 star

精选

Windows-MCP

控制 Windows 应用,操作文件和界面,执行 QA 测试。

CUCursorTouch/Windows-MCP12k近 7 天新增 286 个 star

pal-mcp-server

The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.

BEBeehiveInnovations/pal-mcp-server12k近 7 天新增 21 个 star