Create dummy zfs plugin file
This commit is contained in:
@@ -1459,6 +1459,20 @@
|
|||||||
# stats = ["MAIN.cache_hit", "MAIN.cache_miss", "MAIN.uptime"]
|
# stats = ["MAIN.cache_hit", "MAIN.cache_miss", "MAIN.uptime"]
|
||||||
|
|
||||||
|
|
||||||
|
# # Read metrics of ZFS from arcstats, zfetchstats, vdev_cache_stats, and pools
|
||||||
|
# [[inputs.zfs]]
|
||||||
|
# ## ZFS kstat path. Ignored on FreeBSD
|
||||||
|
# ## If not specified, then default is:
|
||||||
|
# # kstatPath = "/proc/spl/kstat/zfs"
|
||||||
|
#
|
||||||
|
# ## By default, telegraf gather all zfs stats
|
||||||
|
# ## If not specified, then default is:
|
||||||
|
# # kstatMetrics = ["arcstats", "zfetchstats", "vdev_cache_stats"]
|
||||||
|
#
|
||||||
|
# ## By default, don't gather zpool stats
|
||||||
|
# # poolMetrics = false
|
||||||
|
|
||||||
|
|
||||||
# # Reads 'mntr' stats from one or many zookeeper servers
|
# # Reads 'mntr' stats from one or many zookeeper servers
|
||||||
# [[inputs.zookeeper]]
|
# [[inputs.zookeeper]]
|
||||||
# ## An array of address to gather stats about. Specify an ip or hostname
|
# ## An array of address to gather stats about. Specify an ip or hostname
|
||||||
|
|||||||
18
plugins/inputs/zfs/zfs_other.go
Normal file
18
plugins/inputs/zfs/zfs_other.go
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
// +build !linux !freebsd
|
||||||
|
|
||||||
|
package zfs
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/influxdata/telegraf"
|
||||||
|
"github.com/influxdata/telegraf/plugins/inputs"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (z *Zfs) Gather(acc telegraf.Accumulator) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
inputs.Add("zfs", func() telegraf.Input {
|
||||||
|
return &Zfs{}
|
||||||
|
})
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user