This role attempts to install and configure telegraf, a monitoring agent written in Go.
- Tested on Ansible 2.6 or higher.
Output target for data gathered by telegraf. See defaults/main.yml for an example.
Additional input plugins to be configured. This is a list containing unnamed dictionaries with the following keys:
plugin
-- name of the pluginconfig
-- list of lines that will be put in the config file for the plugin
See Example Playbook below.
None.
This example installs an additional input plugin ping
with a configuration option.
- hosts: servers
tasks:
- import_role:
name: jniewt.telegraf
vars:
telegraf_plugins:
- plugin: ping
config:
- 'urls = ["www.google.com", "1.2.3.4"] # required'
MIT
jniewt | jniewt@gmail.com