From c7d942c02b034ce339bdb554e61410d3faa7f5c8 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 30 Oct 2023 19:36:54 +0100 Subject: telegraf-os: Making module. --- .../telegraf/telegraf-os/templates/telegraf.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 terraform/telegraf/telegraf-os/templates/telegraf.conf (limited to 'terraform/telegraf/telegraf-os/templates/telegraf.conf') diff --git a/terraform/telegraf/telegraf-os/templates/telegraf.conf b/terraform/telegraf/telegraf-os/templates/telegraf.conf new file mode 100644 index 0000000..369bd7b --- /dev/null +++ b/terraform/telegraf/telegraf-os/templates/telegraf.conf @@ -0,0 +1,20 @@ +[agent] + hostname = "{{ inventory_hostname }}" + omit_hostname = false + +[[outputs.influxdb_v2]] + urls = ["${INFLUX_URL}"] + token = "${INFLUX_TOKEN}" + organization = "${INFLUX_ORGANIZATION}" + bucket = "${INFLUX_BUCKET}" + +[[inputs.disk]] + ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] + mount_points = ["/"] + +[[inputs.mem]] +[[inputs.net]] +[[inputs.wireguard]] + +[[inputs.docker]] + endpoint = "unix:///var/run/docker.sock" -- cgit v1.2.3