From 769d51b337adf97dc4e427188c489ba4c9734764 Mon Sep 17 00:00:00 2001 From: tison Date: Fri, 12 Jul 2024 14:45:32 +0800 Subject: [PATCH] Update telegraf.conf --- telegraf-ingestion/telegraf.conf | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/telegraf-ingestion/telegraf.conf b/telegraf-ingestion/telegraf.conf index 1b5402b..7aec62b 100644 --- a/telegraf-ingestion/telegraf.conf +++ b/telegraf-ingestion/telegraf.conf @@ -25,7 +25,6 @@ omit_hostname = false precision = "0s" round_interval = true -# https://github.com/influxdata/telegraf/blob/release-1.30/plugins/outputs/influxdb/README.md [[outputs.influxdb]] urls = ["https://${GREPTIME_HOST}/v1/influxdb/"] database = "${GREPTIME_DATABASE}" @@ -33,8 +32,6 @@ username = "${GREPTIME_USERNAME}" password = "${GREPTIME_PASSWORD}" skip_database_creation = true -# The cpu plugin gather metrics on the system CPUs. -# https://github.com/influxdata/telegraf/blob/release-1.30/plugins/inputs/cpu/README.md [[inputs.cpu]] collect_cpu_time = false core_tags = false @@ -42,31 +39,19 @@ percpu = true report_active = false totalcpu = true -# The disk input plugin gathers metrics about disk usage. -# https://github.com/influxdata/telegraf/blob/release-1.30/plugins/inputs/disk/README.md [[inputs.disk]] ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] -# The diskio input plugin gathers metrics about disk traffic and timing. -# https://github.com/influxdata/telegraf/blob/release-1.30/plugins/inputs/diskio/README.md [[inputs.diskio]] -# The kernel plugin gathers info about the kernel that doesn't fit into other plugins. This plugin ONLY supports Linux. -# https://github.com/influxdata/telegraf/blob/release-1.30/plugins/inputs/kernel/README.md -[[inputs.kernel]] - -# The mem plugin collects system memory metrics. -# https://github.com/influxdata/telegraf/blob/release-1.30/plugins/inputs/mem/README.md [[inputs.mem]] -# This plugin gathers info about the total number of processes and groups them by status. -# https://github.com/influxdata/telegraf/blob/release-1.30/plugins/inputs/processes/README.md [[inputs.processes]] -# The swap plugin collects system swap metrics. This plugin ONLY supports Linux. -# https://github.com/influxdata/telegraf/blob/release-1.30/plugins/inputs/swap/README.md -[[inputs.swap]] - -# The system plugin gathers general stats on system load, uptime, and number of users logged in. It is similar to the unix uptime command. -# https://github.com/influxdata/telegraf/blob/release-1.30/plugins/inputs/system/README.md [[inputs.system]] + +[[processors.printer]] + +[[aggregators.minmax]] +period = "30s" +drop_original = false