diff --git a/CHANGELOG.md b/CHANGELOG.md index 4524b9817454f..0f5b72e288e81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - [#727](https://github.com/influxdata/telegraf/pull/727): riak input, thanks @jcoene! - [#694](https://github.com/influxdata/telegraf/pull/694): DNS Query input, thanks @mjasion! - [#724](https://github.com/influxdata/telegraf/pull/724): username matching for procstat input, thanks @zorel! +- [#736](https://github.com/influxdata/telegraf/pull/736): Ignore dummy filesystems from disk plugin. Thanks @PierreF! ### Bugfixes - [#701](https://github.com/influxdata/telegraf/pull/701): output write count shouldnt print in quiet mode. diff --git a/internal/config/config.go b/internal/config/config.go index 09f878f50344f..b5b73e06ec7db 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -185,25 +185,22 @@ var header = `# Telegraf Configuration hostname = "" -############################################################################### -# OUTPUTS # -############################################################################### +# +# OUTPUTS: +# ` var pluginHeader = ` - -############################################################################### -# INPUTS # -############################################################################### - +# +# INPUTS: +# ` var serviceInputHeader = ` - -############################################################################### -# SERVICE INPUTS # -############################################################################### +# +# SERVICE INPUTS: +# ` // PrintSampleConfig prints the sample config diff --git a/plugins/inputs/system/disk.go b/plugins/inputs/system/disk.go index f93558de27bc3..5784a732218a4 100644 --- a/plugins/inputs/system/disk.go +++ b/plugins/inputs/system/disk.go @@ -26,8 +26,8 @@ var diskSampleConfig = ` ## Setting mountpoints will restrict the stats to the specified mountpoints. # mount_points = ["/"] - # Ignore some mountpoints by filesystem type. For example (dev)tmpfs (usually - # present on /run, /var/run, /dev/shm or /dev). + ## Ignore some mountpoints by filesystem type. For example (dev)tmpfs (usually + ## present on /run, /var/run, /dev/shm or /dev). ignore_fs = ["tmpfs", "devtmpfs"] ` @@ -88,11 +88,11 @@ func (_ *DiskIOStats) Description() string { } var diskIoSampleConfig = ` - # By default, telegraf will gather stats for all devices including - # disk partitions. - # Setting devices will restrict the stats to the specified devices. + ## By default, telegraf will gather stats for all devices including + ## disk partitions. + ## Setting devices will restrict the stats to the specified devices. # devices = ["sda", "sdb"] - # Uncomment the following line if you do not need disk serial numbers. + ## Uncomment the following line if you do not need disk serial numbers. # skip_serial_number = true `