telegraf

telegraf

官方

Docker 应用程序 from atribe's Repository

概述

Telegraf gathers metrics from your system and sends them to an InfluxDB server for storage. From InfluxDB you would typically use something like Grafana to plot the data.
Both Grafana and Influxdb are available through Community Apps

This version of telegraf requires you to manually place a config file at /mnt/user/appdata/telegraf/telegraf.conf The container will not start without it.

The default telegraf.conf file can be extracted from telegraf by running this command before you launch telegraf
docker run --rm telegraf telegraf config > /mnt/cache/appdata/telegraf/telegraf.conf

Configuration
Container Volumes:
/var/run/docker.sock Read Only. Location of your docker socket.
/var/run/utmp Read Only. Location of your utmp file.
/run/udev Read Only. Allows you to identify devices based on their properties, like vendor ID and device ID
/rootfs Read Only. To be mapped to the root of the host file system. This is so the disk usage reported will be that of the host system.
/rootfs/etc Read Only. To be mapped to the etc of the host file system. This is so the disk usage reported will be that of the host system.
/rootfs/proc Read Only. To be mapped to the proc of the host file system. This is so the disk usage reported will be that of the host system.
/rootfs/sys Read Only. To be mapped to the sys of the host file system. This is so the disk usage reported will be that of the host system.

Environment Variables:
HOST_MOUNT_PREFIX Name of container volume mapping of the root file system.
HOST_ETC Name of the etc volume mapping of the root file system.
HOST_PROC Name of the proc volume mapping of the root file system.
HOST_SYS Name of the sys volume mapping of the root file sytem.

运行时参数

网络
host
特权
true

模板配置

Host Path 1Pathro

Container Path: /var/run/utmp

目标
/var/run/utmp
默认值
/var/run/utmp
Host Path 2Pathro

Container Path: /var/run/docker.sock

目标
/var/run/docker.sock
默认值
/var/run/docker.sock
Host Path 3Pathro

Container Path: /rootfs

目标
/rootfs
默认值
/
Host Path 4Pathro

Container Path: /rootfs/sys

目标
/rootfs/sys
默认值
/sys
Host Path 5Pathro

Container Path: /rootfs/etc

目标
/rootfs/etc
默认值
/etc
Host Path 6Pathro

Container Path: /rootfs/proc

目标
/rootfs/proc
默认值
/proc
Host Path 7Pathrw

Container Path: /etc/telegraf/telegraf.conf

目标
/etc/telegraf/telegraf.conf
默认值
/mnt/user/appdata/telegraf/telegraf.conf
Host Path 8Pathro

Container Path: /run/udev

目标
/run/udev
默认值
/run/udev
Key 1Variable

Container Variable: HOST_PROC

目标
HOST_PROC
默认值
/rootfs/proc
Key 2Variable

Container Variable: HOST_SYS

目标
HOST_SYS
默认值
/rootfs/sys
Key 3Variable

Container Variable: HOST_ETC

目标
HOST_ETC
默认值
/rootfs/etc
Key 4Variable

Container Variable: HOST_MOUNT_PREFIX

目标
HOST_MOUNT_PREFIX
默认值
/rootfs

下载统计数据

632,381,219
下载总数
2,208,362
本月
1,872,698
平均每月

长期下载总量

加载图表...

详细信息

存储库
telegraf:latest
最后更新2026-04-17
初见2020-12-11

在Unraid 上运行 Telegraf 。

Telegraf 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。