Monitoring Disk Consumption with Telegraf and OpenObserve

TLDR David inquired about disk consumption monitoring with Telegraf and OpenObserve, Prabhat provided a sample configuration for it.

Photo of David
David
Thu, 29 Jun 2023 12:53:57 UTC

How to monitor the disk consumption metric with telegraf and openobserve?

Photo of Prabhat
Prabhat
Thu, 29 Jun 2023 13:21:42 UTC

This is a sample that you can use

Photo of Prabhat
Prabhat
Thu, 29 Jun 2023 13:21:45 UTC

```# Telegraf Configuration # Global tags can be specified here in key=value format. [global_tags] environment = "production" # Configuration for telegraf agent [agent] interval = "5s" round_interval = true metric_batch_size = 1000 metric_buffer_limit = 10000 collection_jitter = "0s" flush_interval = "5s" flush_jitter = "0s" precision = "" debug = false quiet = false # Input plugins [[inputs.cpu]] percpu = true totalcpu = true collect_cpu_time = false report_active = false [[inputs.disk]] ignore_fs = ["tmpfs", "devtmpfs"] [[inputs.mem]] [[]] [[outputs.http]] ## URL is the address to send metrics to url = "" ## Data format to output. data_format = "prometheusremotewrite" [outputs.http.headers] Content-Type = "application/x-protobuf" Content-Encoding = "snappy" X-Prometheus-Remote-Write-Version = "0.1.0" Authorization = "Basic cm9vdEBleGFtcGxlLmNvbTpoWEdwTndTVWtwT1o0MXlC"```

Photo of Prabhat
Prabhat
Thu, 29 Jun 2023 13:22:10 UTC

You can see the section ```[[inputs.disk]] ignore_fs = ["tmpfs", "devtmpfs"]```