add telegraf

This commit is contained in:
Kar k1
2025-09-18 19:00:45 +05:30
parent e0a00e91fb
commit 82cc5a8475
2 changed files with 46 additions and 2 deletions

33
telegraf/telegraf.conf Normal file
View File

@@ -0,0 +1,33 @@
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = ""
omit_hostname = false
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
token = "my-secret-token"
organization = "my-org"
bucket = "telegraf-bucket"
[[inputs.cpu]]
percpu = true
totalcpu = true
collect_cpu_time = false
report_active = true
[[inputs.mem]]
[[inputs.disk]]
[[inputs.system]]
[[inputs.net]]
[[inputs.processes]]
[[inputs.swap]]
[[inputs.diskio]]
[[inputs.kernel]]