Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
d547c7f607
commit
096a3e0540
69 changed files with 1650 additions and 0 deletions
2
templates/telegraf/influxdata.list.j2
Normal file
2
templates/telegraf/influxdata.list.j2
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ ansible_managed | comment }}
|
||||
deb https://repos.influxdata.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable
|
39
templates/telegraf/inputs.conf.j2
Normal file
39
templates/telegraf/inputs.conf.j2
Normal 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 }}"
|
10
templates/telegraf/output.conf.j2
Normal file
10
templates/telegraf/output.conf.j2
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue