Create dummy zfs plugin file
This commit is contained in:
parent
f08a27be5d
commit
c4841843a9
|
@ -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
|
||||||
|
|
|
@ -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{}
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in New Issue