Debian

Fluent Bit 发布的软件包为 td-agent-bit,可用于最新(和旧)稳定版 Debian 系统: Buster, Stretch 和 Jessie。

Server GPG key

第一步,将我们的服务器 GPG 密钥添加到您的密钥环中,这样就可以获取我们签名的软件包:

$ wget -qO - https://packages.fluentbit.io/fluentbit.key | sudo apt-key add -

Update your sources lists

在 Debian 上,您需要将我们的 APT 服务器实例添加到您的源列表中,请在 /etc/apt/sources.list 文件中添加如下内容:

Debian 10 (Buster)

deb https://packages.fluentbit.io/debian/buster buster main

Debian 9 (Stretch)

deb https://packages.fluentbit.io/debian/stretch stretch main

Debian 8 (Jessie)

deb https://packages.fluentbit.io/debian/jessie jessie main

Update your repositories database

现在,让您的系统更新 apt 数据库:

Install TD Agent Bit

现在,使用以下 apt-get 命令,您可以安装最新的 td-agent-bit:

Now the following step is to instruct systemd to enable the service:

如果进行状态检查,应该会看到类似如下的输出:

td-agent-bit 的默认配置是收集 CPU 使用率的指标数据并将记录发送到标准输出,您可以在 /var/log/syslog 文件中看到输出的数据。

Last updated

Was this helpful?