2022-02-16 18:33:46 +01:00
|
|
|
//go:build !ganglia
|
2022-02-16 19:07:00 +01:00
|
|
|
// +build !ganglia
|
2022-02-16 18:33:46 +01:00
|
|
|
|
|
|
|
package sinks
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric"
|
|
|
|
)
|
|
|
|
|
|
|
|
type LibgangliaSink struct {
|
|
|
|
sink
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *LibgangliaSink) Init(config json.RawMessage) error {
|
|
|
|
return errors.New("sink 'libganglia' not implemented, rebuild with tag 'ganglia'")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *LibgangliaSink) Write(point lp.CCMetric) error {
|
|
|
|
return errors.New("sink 'libganglia' not implemented, rebuild with tag 'ganglia'")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *LibgangliaSink) Flush() error {
|
|
|
|
return errors.New("sink 'ganglia' not implemented, rebuild with tag 'ganglia'")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *LibgangliaSink) Close() {
|
|
|
|
}
|