Skip to content

jet-dev-team/ansible-telegraf-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-telegraf-agent

Ansible playbook for setting up Telegraf agent.

Example usage

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