Create dummy zfs plugin file

This commit is contained in:
Cameron Sparr 2016-06-01 18:53:29 +01:00
parent f08a27be5d
commit c4841843a9
2 changed files with 32 additions and 0 deletions

View File

@ -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

View 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{}
})
}