HUB
Sign inSign up
telegraf logo

11notes/telegraf

By 11notes

•Updated about 3 years ago

Run Telegraf based on Alpine Linux. Small, lightweight, secure and fast 🏔️

Image
0

1.0K

11notes/telegraf repository overview

⁠Alpine :: Telegraf

size version pulls activity commit-last

Run Telegraf based on Alpine Linux. Small, lightweight, secure and fast 🏔️

⁠Run

docker run --name telegraf \
  -v ../telegraf.conf:/telegraf/etc/telegraf.conf:ro \
  -d 11notes/telegraf:[tag]

⁠Defaults

ParameterValueDescription
userdockeruser docker
uid1000user id 1000
gid1000group id 1000
home/telegrafhome directory of user docker
config/telegraf/etc/telegraf.confdefault configuration

⁠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 = ["https://influxdb"]
  token = "**********************************************"
  organization = "influxdb"
  bucket = "global"

[[inputs.prometheus]]
  urls = ["http://localhost:8080/metrics"]

⁠Parent image

⁠Built with and thanks to

⁠Tips

  • Only use rootless container runtime (podman, rootless docker)
  • Don't bind to ports < 1024 (requires root), use NAT/reverse proxy (haproxy, traefik, nginx)

Tag summary

Content type

Image

Digest

sha256:b17818136…

Size

225 MB

Last updated

about 3 years ago

docker pull 11notes/telegraf:1.28.3