Fast and Lightweight Observability Data Collector
Fast and Lightweight Observability Data Collector
LoongCollector is a high-performance, lightweight observability data collector designed for modern cloud-native environments. Born from Alibaba's 15-year journey handling exponential traffic growth and powering tens of millions of deployments, LoongCollector delivers 10x higher throughput with 80% lower resource usage compared to open-source alternatives.
LoongCollector is a key component of LoongSuite(Alibaba's unified observability data collection suite). LoongSuite includes the following key components:
The LoongSuite open-source community hosts monthly online sharing meetings. The meeting access link for each meeting will be posted to GitHub Discussions and shared in the DingTalk and WeChat groups within one week prior to the event. Recordings of past meetings are available on Bilibili.
⚡ High Performance
️ Production-Ready
** All-in-One Collection**
** Pluggable Architecture**
⚙️ Advanced Management
Maximum Throughput Comparison
| Log Type | LoongCollector | FluentBit | Vector | Filebeat |
|---|---|---|---|---|
| Single Line | 546 MB/s | 36 MB/s | 38 MB/s | 9 MB/s |
| Multi-line | 238 MB/s | 24 MB/s | 22 MB/s | 6 MB/s |
| Regex Parsing | 68 MB/s | 19 MB/s | 12 MB/s | Not Supported |
Resource Efficiency at 10 MB/s Processing Load
| Scenario | LoongCollector | FluentBit | Vector | Filebeat |
|---|---|---|---|---|
| Simple Line (512B) | 3.40% CPU 29.01 MB RAM |
12.29% CPU (+261%) 46.84 MB RAM (+61%) |
35.80% CPU (+952%) 83.24 MB RAM (+186%) |
Performance Insufficient |
| Multi-line (512B) | 5.82% CPU 29.39 MB RAM |
28.35% CPU (+387%) 46.39 MB RAM (+57%) |
55.99% CPU (+862%) 85.17 MB RAM (+189%) |
Performance Insufficient |
| Regex (512B) | 14.20% CPU 34.02 MB RAM |
37.32% CPU (+162%) 46.44 MB RAM (+36%) |
43.90% CPU (+209%) 90.51 MB RAM (+166%) |
Not Supported |
1. Memory Arena: Zero-Copy Design
2. Lock-Free Event Pool
3. Zero-Copy Serialization: Direct Network Output
4. Multi-Tenant Pipeline Isolation
5. Fair Resource Allocation
6. Self-Healing Network Resilience
LoongCollector has been battle-tested in some of the world's most demanding production environments:
# Clone the repository
git clone https://github.com/alibaba/loongcollector.git
cd loongcollector
git submodule update --init
# Build LoongCollector
make all
cd output
# Start LoongCollector
nohup ./loongcollector > stdout.log 2> stderr.log &LoongCollector is now running.
# Build the Docker image alibaba/loongcollector:0.0.1
make dist
make docker
# Run with default configuration
docker run -d --name loongcollector \
-v /:/logtail_host:ro \
-v /var/run:/var/run \
alibaba/loongcollector:0.0.1We welcome contributions from the community! Here are some ways you can help:
We are looking forward to your feedback and suggestions. You can scan the QR code below to engage with us.
| LoongSuite Python SIG | LoongSuite Go SIG | LoongSuite Java SIG |
|---|---|---|
LoongCollector is licensed under the Apache 2.0 License.
No open issues yet, or sync has not completed.