Ansible playbook for setting up Telegraf agent.
Create config.yml
file with your minimum configuration.
influxdb_urls: ["https://example.com:8086"]
influxdb_database: "telegraf"
influxdb_username: "username"
influxdb_password: "secret"
input_plugins:
- cpu
- disk
- diskio
- kernel
- mem
- processes
- swap
- system
- net
- netstat
- interrupts
- syslog
Run ansible playbook:
ansible-playbook main.playbook.yml -i 192.168.0.1, -u username -K