github.com/influxdata/influxdb/v2@v2.7.6/telegraf/plugins/inputs/disk.go (about)

     1  package inputs
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  // DiskStats is based on telegraf DiskStats.
     8  type DiskStats struct {
     9  	baseInput
    10  }
    11  
    12  // PluginName is based on telegraf plugin name.
    13  func (d *DiskStats) PluginName() string {
    14  	return "disk"
    15  }
    16  
    17  // UnmarshalTOML decodes the parsed data to the object
    18  func (d *DiskStats) UnmarshalTOML(data interface{}) error {
    19  	return nil
    20  }
    21  
    22  // TOML encodes to toml string
    23  func (d *DiskStats) TOML() string {
    24  	return fmt.Sprintf(`[[inputs.%s]]
    25    ## By default stats will be gathered for all mount points.
    26    ## Set mount_points will restrict the stats to only the specified mount points.
    27    # mount_points = ["/"]
    28    ## Ignore mount points by filesystem type.
    29    ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"]
    30  `, d.PluginName())
    31  }