2022-05-24 21:49:47 +08:00
|
|
|
//go:generate ../../../tools/readme_config_includer/generator
|
2015-11-03 23:53:09 +08:00
|
|
|
package zfs
|
|
|
|
|
|
2020-11-28 02:58:32 +08:00
|
|
|
import (
|
2022-05-24 21:49:47 +08:00
|
|
|
_ "embed"
|
|
|
|
|
|
2020-11-28 02:58:32 +08:00
|
|
|
"github.com/influxdata/telegraf"
|
|
|
|
|
)
|
|
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
//go:embed sample.conf
|
|
|
|
|
var sampleConfig string
|
|
|
|
|
|
2015-11-03 23:53:09 +08:00
|
|
|
type Zfs struct {
|
2025-04-02 05:17:51 +08:00
|
|
|
KstatPath string `toml:"kstatPath"`
|
|
|
|
|
KstatMetrics []string `toml:"kstatMetrics"`
|
|
|
|
|
PoolMetrics bool `toml:"poolMetrics"`
|
|
|
|
|
DatasetMetrics bool `toml:"datasetMetrics"`
|
2020-11-28 02:58:32 +08:00
|
|
|
Log telegraf.Logger `toml:"-"`
|
2023-10-26 05:21:06 +08:00
|
|
|
|
2025-04-02 05:17:51 +08:00
|
|
|
helper //nolint:unused // for OS-specific usage
|
2015-12-11 02:38:47 +08:00
|
|
|
}
|
2022-05-24 21:49:47 +08:00
|
|
|
|
|
|
|
|
func (*Zfs) SampleConfig() string {
|
|
|
|
|
return sampleConfig
|
|
|
|
|
}
|