categraf/inputs/kernel/kernel_notlinux.go

39 lines
641 B
Go
Raw Normal View History

2022-04-16 23:14:48 +08:00
//go:build !linux
// +build !linux
package kernel
import (
"flashcat.cloud/categraf/inputs"
"flashcat.cloud/categraf/types"
)
2022-04-17 08:02:33 +08:00
const inputName = "kernel"
2022-04-16 23:14:48 +08:00
type KernelStats struct {
PrintConfigs bool `toml:"print_configs"`
IntervalSeconds int64 `toml:"interval_seconds"`
}
func init() {
2022-04-17 08:02:33 +08:00
inputs.Add(inputName, func() inputs.Input {
2022-04-16 23:14:48 +08:00
return &KernelStats{}
})
}
func (s *KernelStats) GetInputName() string {
2022-04-17 08:02:33 +08:00
return inputName
2022-04-16 23:14:48 +08:00
}
func (s *KernelStats) GetIntervalSeconds() int64 {
return s.IntervalSeconds
}
func (s *KernelStats) Init() error {
return nil
}
func (s *KernelStats) Gather() (samples []*types.Sample) {
return
}