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