Initial commit

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2024-04-27 15:18:41 +02:00
parent d547c7f607
commit 096a3e0540
No known key found for this signature in database
GPG key ID: A2EB1F2CA8E3F677
69 changed files with 1650 additions and 0 deletions

View file

@ -0,0 +1,2 @@
{{ ansible_managed | comment }}
deb https://repos.influxdata.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable

View file

@ -0,0 +1,39 @@
{{ ansible_managed | comment }}
[[inputs.cpu]]
percpu = false
totalcpu = true
collect_cpu_time = false
report_active = false
[[inputs.disk]]
mount_points = ["/", "/boot"]
[[inputs.diskio]]
devices = ["mmcblk0"]
[[inputs.kernel]]
[[inputs.mem]]
[[inputs.processes]]
[[inputs.swap]]
[[inputs.system]]
[[inputs.net]]
interfaces = ["eth0", "tun0"]
[[inputs.sensors]]
[[inputs.ping]]
urls = ["{{ telegraf_ping_ip }}"]
count = 3
ping_interval = 1.0
timeout = 1.0
[[inputs.mqtt_consumer]]
servers = {{ telegraf_mqtt_consumer_servers }}
topics = {{ telegraf_mqtt_consumer_topics }}
persistent_session = true
client_id = "telegraf"
data_format = "value"
data_type = "float"
username = "{{ telegraf_mqtt_consumer_username }}"
password = "{{ telegraf_mqtt_consumer_password }}"

View file

@ -0,0 +1,10 @@
{{ ansible_managed | comment }}
[[outputs.influxdb]]
urls = {{ telegraf_influxdb_urls }}
database = "{{ telegraf_influxdb_database }}"
skip_database_creation = true
username = "{{ telegraf_influxdb_username }}"
password = "{{ telegraf_influxdb_password }}"
insecure_skip_verify = true
content_encoding = "gzip"