TELEGRAF(1)

πŸ“¦ version 1.21.4, in ubuntu jammy

πŸ’– TELEGRAF(1) πŸ’–

okay bestie, pull up a chair, we're talking about telegraf β€” the plugin-driven server agent for collecting and reporting metrics. yes THAT telegraf. she's iconic, she's efficient, she's lowkey the backbone of your whole observability situation, and this is her manual page. let's get into it 🫢


✨ NAME ✨

telegraf β€” the plugin-driven server agent for collecting and reporting metrics, no cap πŸ’…


🌸 SYNOPSIS 🌸

telegraf --help

telegraf [commands | flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, Telegraf is an agent that collects, processes, aggregates, and writes metrics. that's the whole job description and she ate. πŸ’…

the design goals are giving minimal memory footprint plus a plugin system, so that developers in the community can easily add support for collecting metrics. it's the "bring your own plugin" of it all and honestly? obsessed. πŸŽ€


πŸ’… OPTIONS πŸ’…

  • version β€” print the version to stdout ✨
  • config β€” print out full sample configuration to stdout
  • --aggregator-filter <filter> β€” filter the aggregators to enable, separator is : (yes, the colon is the divider, she's the main character)
  • --config <file> β€” configuration file to load
  • --config-directory <directory> β€” directory containing additional *.conf files
  • --plugin-directory β€” directory containing *.so files. this directory will be searched recursively. Any Plugin found will be loaded and namespaced. 😀
  • --debug β€” turn on debug logging (for when you need the full tea β˜•)
  • --input-filter <filter> β€” filter the inputs to enable, separator is :
  • --input-list β€” print available input plugins. window shopping, but make it metrics πŸ›οΈ
  • --output-filter <filter> β€” filter the outputs to enable, separator is :
  • --output-list β€” print available output plugins.
  • --pidfile <file> β€” file to write our pid to
  • --pprof-addr <address> β€” pprof address to listen on, don't activate pprof if empty
  • --processor-filter <filter> β€” filter the processors to enable, separator is :
  • --quiet β€” run in quiet mode 🀫
  • --section-filter β€” filter config sections to output, separator is :. Valid values are 'agent', 'global_tags', 'outputs', 'processors', 'aggregators' and 'inputs'
  • --sample-config β€” print out full sample configuration
  • --test β€” gather metrics, print them out, and exit; processors, aggregators, and outputs are not run
  • --test-wait β€” wait up to this many seconds for service inputs to complete in test mode
  • --usage <plugin> β€” print usage for a plugin, ie, telegraf --usage mysql
  • --version β€” display the version and exit

🌈 EXAMPLES 🌈

here's the group chat receipts, bestie β€” copy these exactly, no edits:

# generate a telegraf config file:
telegraf config > telegraf.conf

# generate config with only cpu input & influxdb output plugins defined
telegraf --input-filter cpu --output-filter influxdb config

# run a single telegraf collection, outputting metrics to stdout
telegraf --config telegraf.conf --test

# run telegraf with all plugins defined in config file
telegraf --config telegraf.conf

# run telegraf, enabling the cpu & memory input, and influxdb output plugins
telegraf --config telegraf.conf --input-filter cpu:mem --output-filter influxdb

# run telegraf with pprof
telegraf --config telegraf.conf --pprof-addr localhost:6060

πŸ‘‘ AUTHOR πŸ‘‘

Telegraf was written by Influxdata. This manpage was written by Sergio Durigan Junior <sergio.durigan@canonical.com>. absolute legends, both of them, we stan 🫢


okay and that's the whole page!! this edition of the TELEGRAF(1) manual page is dated 2020-07-28 β€” so yeah, it's a lil vintage, a classic, if you will, and the manual name itself is, well, TELEGRAF(1), in case you forgot where you were. πŸ’–βœ¨ go forth and collect some metrics, bestie, you've got this πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from