Skip to content

Ansible role to install and configure Telegraf as an InfluxDB proxy for InfluxDB Cloud

License

Notifications You must be signed in to change notification settings

hulkk/telegraf-influxdbproxy-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegraf-influxdbproxy-ansible

Ansible role to install and configure telegraf as a InfluxDB proxy which listens v1 locally and outputs v2 to InfluxDB Cloud

Created for personal use and tested with

  • RaspberryPi OS Lite (32-bit)
  • RaspberryPi ZeroW 2

Role Variables

Mandatory

  • influxdbproxy_telegraf_output_influxdbv2 (dict, default null)
    • required dict values as strings are url, token, organization and bucket

Optional

  • influxdbproxy_telegraf_interval (string, default "20s")
  • influxdbproxy_telegraf_round_interval (boolean, default true)
  • influxdbproxy_telegraf_metric_batch_size (int, default 1000)
  • influxdbproxy_telegraf_metric_buffer_limit (int, default 10000)
  • influxdbproxy_telegraf_collection_jitter (string, default "0s")
  • influxdbproxy_telegraf_flush_interval (string, default "10s")
  • influxdbproxy_telegraf_flush_jitter (string, default "0s")
  • influxdbproxy_telegraf_log_timezone (string, default "Europe/Helsinki")
  • influxdbproxy_telegraf_influxdb_listener (string, default ":8186")

Example usage

ansible.cfg

[defaults]
roles_path = roles

requirements.yml

- src: https://github.com/hulkk/telegraf-influxdbproxy-ansible

ansible-galaxy install -r requirements.yml --force

site.yml

- hosts: ruuvi
  roles:
     - telegraf-influxdbproxy-ansible

About

Ansible role to install and configure Telegraf as an InfluxDB proxy for InfluxDB Cloud

Topics

Resources

License

Stars

Watchers

Forks

Languages