专属
文档
插件
助手
邀请
顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单

文档

工具

功能
提交工单页面收录

帮助
轩辕镜像免费版

其他
关于我们网站地图
热门搜索:
telegraf

library/telegraf

Docker 官方镜像

Telegraf是一款用于收集指标并将其写入InfluxDB或其他输出目标的代理工具。

731 次收藏下载次数: 0状态:Docker 官方镜像维护者:Docker 官方镜像仓库类型:镜像最近更新:26 天前
让 AI 帮你使用轩辕镜像? · 展开查看说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

使用轩辕镜像,把时间还给真正重要的事。点击查看
DockerHub 官方简介
轩辕镜像中文简介
标签列表
镜像标签列表与下载命令
使用轩辕镜像,把时间还给真正重要的事。点击查看

Quick reference

  • Maintained by:
    https://github.com/influxdata/influxdata-docker

  • Where to get help:
    the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow

Supported tags and respective Dockerfile links

  • https://github.com/influxdata/influxdata-docker/blob/5100c085f7ee3b1eebf49e8fcbed437d64ab0ec5/telegraf/1.36/Dockerfile

  • https://github.com/influxdata/influxdata-docker/blob/5100c085f7ee3b1eebf49e8fcbed437d64ab0ec5/telegraf/1.36/alpine/Dockerfile

  • https://github.com/influxdata/influxdata-docker/blob/5100c085f7ee3b1eebf49e8fcbed437d64ab0ec5/telegraf/1.37/Dockerfile

  • https://github.com/influxdata/influxdata-docker/blob/5100c085f7ee3b1eebf49e8fcbed437d64ab0ec5/telegraf/1.37/alpine/Dockerfile

  • https://github.com/influxdata/influxdata-docker/blob/5100c085f7ee3b1eebf49e8fcbed437d64ab0ec5/telegraf/1.38/Dockerfile

  • https://github.com/influxdata/influxdata-docker/blob/5100c085f7ee3b1eebf49e8fcbed437d64ab0ec5/telegraf/1.38/alpine/Dockerfile

Quick reference (cont.)

  • Where to file issues:
    https://github.com/influxdata/influxdata-docker/issues?q=

  • Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
    https://hub.docker.com/r/amd64/telegraf/, https://hub.docker.com/r/arm32v7/telegraf/, https://hub.docker.com/r/arm64v8/telegraf/

  • Published image artifact details:
    https://github.com/docker-library/repo-info/blob/master/repos/telegraf (https://github.com/docker-library/repo-info/commits/master/repos/telegraf)
    (image metadata, transfer size, etc)

  • Image updates:
    https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Ftelegraf
    https://github.com/docker-library/official-images/blob/master/library/telegraf (https://github.com/docker-library/official-images/commits/master/library/telegraf)

  • Source of this description:
    https://github.com/docker-library/docs/tree/master/telegraf (https://github.com/docker-library/docs/commits/master/telegraf)

What is telegraf?

Telegraf is an open source agent for collecting, processing, aggregating, and writing metrics. Based on a plugin system to enable developers in the community to easily add support for additional metric collection. There are five distinct types of plugins:

  • Input plugins collect metrics from the system, services, or 3rd party APIs
  • Output plugins write metrics to various destinations
  • Processor plugins transform, decorate, and/or filter metrics
  • Aggregator plugins create aggregate metrics (e.g. mean, min, max, quantiles, etc.)
  • Secret Store plugins are used to hide secrets from the configuration file

Telegraf Official Docs

!https://raw.githubusercontent.com/docker-library/docs/7b128c7411e3e8375d9639e6455e47874940f012/telegraf/logo.png

How to use this image

Exposed Ports

  • 8125 UDP
  • 8092 UDP
  • 8094 TCP

Configuration file

The user is required to provide a valid configuration to use the image. A valid configuration has at least one input and one output plugin specified. The following will walk through the general steps to get going.

Basic Example

Configuration files are TOML-based files that declare which plugins to use. A very simple configuration file, telegraf.conf, that collects metrics from the system CPU and outputs the metrics to stdout looks like the following:

toml
[[inputs.cpu]]
[[outputs.file]]

Once a user has a customized configuration file, they can launch a Telegraf container with it mounted in the expected location:

console
$ docker run -v $PWD/telegraf.conf:/etc/telegraf/telegraf.conf:ro telegraf

Modify $PWD to the directory where you want to store the configuration file.

Read more about the Telegraf configuration here.

Sample Configuration

Users can generate a sample configuration using the config subcommand. This will provide the user with a basic config that has a handful of input plugins enabled that collect data from the system. However, the user will still need to configure at least one output before the file is ready for use:

console
$ docker run --rm telegraf telegraf config > telegraf.conf

Supported Plugins Reference

The following are links to the various plugins that are available in Telegraf:

  • Input Plugins
  • Output Plugins
  • Processor Plugins
  • Aggregator Plugins

Examples

Monitoring the Docker Engine Host

One common use case for Telegraf is to monitor the Docker Engine Host from within a container. The recommended technique is to mount the host filesystems into the container and use environment variables to instruct Telegraf where to locate the filesystems.

The precise files that need to be made available varies from plugin to plugin. Here is an example showing the full set of supported locations:

console
$ docker run -d --name=telegraf \
	-v $PWD/telegraf.conf:/etc/telegraf/telegraf.conf:ro \
	-v /:/hostfs:ro \
	-e HOST_ETC=/hostfs/etc \
	-e HOST_PROC=/hostfs/proc \
	-e HOST_SYS=/hostfs/sys \
	-e HOST_VAR=/hostfs/var \
	-e HOST_RUN=/hostfs/run \
	-e HOST_MOUNT_PREFIX=/hostfs \
	telegraf

Monitoring docker containers

To monitor other docker containers, you can use the docker plugin and mount the docker socket into the container. An example configuration is below:

toml
[[inputs.docker]]
  endpoint = "unix:///var/run/docker.sock"

Then you can start the telegraf container.

console
$ docker run -d --name=telegraf \
      --net=influxdb \
      -v /var/run/docker.sock:/var/run/docker.sock \
      -v $PWD/telegraf.conf:/etc/telegraf/telegraf.conf:ro \
      telegraf

Refer to the docker https://github.com/influxdata/telegraf/blob/master/plugins/inputs/docker/README.md for more information.

Install Additional Packages

Some plugins require additional packages to be installed. For example, the ntpq plugin requires ntpq command. It is recommended to create a custom derivative image to install any needed commands.

As an example this Dockerfile add the mtr-tiny image to the stock image and save it as telegraf-mtr.docker:

dockerfile
FROM telegraf:1.12.3

RUN apt-get update && apt-get install -y --no-install-recommends mtr-tiny && \
	rm -rf /var/lib/apt/lists/*

Build the derivative image:

console
$ docker build -t telegraf-mtr:1.12.3 - < telegraf-mtr.docker

Create a telegraf.conf configuration file:

toml
[[inputs.exec]]
  interval = "60s"
  commands=["mtr -C -n example.org"]
  timeout = "40s"
  data_format = "csv"
  csv_skip_rows = 1
  csv_column_names=["", "", "status", "dest", "hop", "ip", "loss", "snt", "", "", "avg", "best", "worst", "stdev"]
  name_override = "mtr"
  csv_tag_columns = ["dest", "hop", "ip"]

[[outputs.file]]
  files = ["stdout"]

Run your derivative image:

console
$ docker run --name telegraf --rm -v $PWD/telegraf.conf:/etc/telegraf/telegraf.conf telegraf-mtr:1.12.3

Image Variants

The telegraf images come in many flavors, each designed for a specific use case.

telegraf:<version>

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.

telegraf:<version>-alpine

This image is based on the popular Alpine Linux project, available in https://hub.docker.com/_/alpine. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.

This variant is useful when final image size being as small as possible is your primary concern. The main caveat to note is that it does use musl libc instead of glibc and friends, so software will often run into issues depending on the depth of their libc requirements/assumptions. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.

To minimize image size, it's uncommon for additional related tools (such as git or bash) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the https://hub.docker.com/_/alpine/ for examples of how to install packages if you are unfamiliar).

License

View https://github.com/influxdata/telegraf/blob/master/LICENSE for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

Some additional license information which was able to be auto-detected might be found in https://github.com/docker-library/repo-info/tree/master/repos/telegraf.

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

更多相关 Docker 镜像与资源

以下是 telegraf 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

  • ubuntu/prometheus Docker 镜像说明(Prometheus 监控系统,基于 Ubuntu,适合生产环境)
  • prom/prometheus Docker 镜像说明(Prometheus 监控系统,Prom 官方版本,适合指标收集和告警)
  • bitnami/prometheus Docker 镜像说明(Prometheus 监控系统,Bitnami 企业级配置)
  • library/influxdb Docker 镜像说明(InfluxDB 时序数据库,适合物联网和监控数据存储)
  • bitnamicharts/prometheus Docker 镜像说明(Prometheus 监控系统,Bitnami Charts 版本)

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 telegraf 镜像标签

docker pull docker.xuanyuan.run/telegraf:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull telegraf:<标签>

更多 telegraf 镜像推荐

golift/telegraf logo

golift/telegraf

golift
基于官方Telegraf Docker镜像,添加smartctl、ipmitool、nvme-cli等监控工具及sudo配置,解决磁盘、传感器、IPMI等系统指标监控难题。
5 次收藏5万+ 次下载
25 天前更新
starlingx/telegraf logo

starlingx/telegraf

starlingx
暂无描述
1万+ 次下载
7 天前更新
openeuler/telegraf logo

openeuler/telegraf

openeuler
基于openEuler的官方Telegraf Docker镜像,是轻量级服务器代理,用于收集、处理、聚合和写入来自数据库、系统及IoT传感器的指标,Go编写,单二进制文件,内存占用极低。
1.9千+ 次下载
1 个月前更新
matisq/telegraf logo

matisq/telegraf

matisq
该镜像属于TIG Stack(Telegraf+InfluxDB+Grafana),用于收集Docker实例的CPU、内存、网络等数据并存储展示,支持Rancher一键部署和普通docker-compose方式使用。
2 次收藏100万+ 次下载
8 年前更新
wavefronthq/telegraf logo

wavefronthq/telegraf

wavefronthq
https://github.com/wavefrontHQ/wavefront-kubernetes/tree/master/docker-images/telegraf
100万+ 次下载
2 年前更新
datasense/telegraf logo

datasense/telegraf

datasense
暂无描述
1000万+ 次下载
13 天前更新

查看更多 telegraf 相关镜像

轩辕镜像配置手册

按平台快速找到配置文档

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

一键安装

一键安装 Docker

Linux Docker 一键安装

需要其他帮助?请查看我们的 常见问题 Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

免费版与专业版区别

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
Docker 官方镜像
...
library/telegraf
教程轩辕镜像功能与使用教程
价格查看流量套餐与价格
热门查看热门 Docker 镜像推荐
博客Docker 镜像公告与技术博客
官方公众号:源码跳动|官方技术交流群:831623681
官方公众号:源码跳动|官方技术交流群:|问题咨询请:提交工单
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.