mirror of
https://github.com/11notes/docker-telegraf.git
synced 2025-10-23 00:02:10 +00:00
3b0e3ff8cfbeea706e7f93c4f0aef83ee14c3179
Info
The plugin-driven server agent for collecting & reporting metrics.
This container provides an easy and simple way to use telegraf without the hassle of library dependencies and compiling the source yourself.
Volumes
None
Run
docker run --name telegraf \
-v /.../telegraf.conf:/telegraf/etc/telegraf.conf:ro \
-d 11notes/telegraf:[tag]
Examples telegraf.conf
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = "0s"
hostname = "telegraf"
[[outputs.influxdb_v2]]
urls = ["http://localhost:8086"]
token = "**********************************************"
organization = "influxdb"
bucket = "global"
[[inputs.prometheus]]
urls = ["http://localhost:8080/metrics"]
Build with
- telegraf - Telegraf
- Alpine Linux - Alpine Linux
Languages
Dockerfile
91.1%
Shell
8.9%