mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
32 lines
631 B
Go
32 lines
631 B
Go
|
//go:build !ganglia
|
||
|
|
||
|
package sinks
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
"errors"
|
||
|
|
||
|
// "time"
|
||
|
|
||
|
lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric"
|
||
|
)
|
||
|
|
||
|
type GangliaSink struct {
|
||
|
sink
|
||
|
}
|
||
|
|
||
|
func (s *GangliaSink) Init(config json.RawMessage) error {
|
||
|
return errors.New("sink 'ganglia' not implemented, rebuild with tag 'ganglia'")
|
||
|
}
|
||
|
|
||
|
func (s *GangliaSink) Write(point lp.CCMetric) error {
|
||
|
return errors.New("sink 'ganglia' not implemented, rebuild with tag 'ganglia'")
|
||
|
}
|
||
|
|
||
|
func (s *GangliaSink) Flush() error {
|
||
|
return errors.New("sink 'ganglia' not implemented, rebuild with tag 'ganglia'")
|
||
|
}
|
||
|
|
||
|
func (s *GangliaSink) Close() {
|
||
|
}
|