mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-04-06 13:35:55 +02:00
Add build tag 'ganglia' and create corresponding files
This commit is contained in:
parent
7d0b1c268f
commit
7675238899
@ -1,3 +1,5 @@
|
||||
//go:build ganglia
|
||||
|
||||
package sinks
|
||||
|
||||
import (
|
||||
|
31
sinks/gangliaSink_disabled.go
Normal file
31
sinks/gangliaSink_disabled.go
Normal file
@ -0,0 +1,31 @@
|
||||
//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() {
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
//go:build ganglia
|
||||
|
||||
package sinks
|
||||
|
||||
/*
|
||||
|
29
sinks/libgangliaSink_disabled.go
Normal file
29
sinks/libgangliaSink_disabled.go
Normal file
@ -0,0 +1,29 @@
|
||||
//go:build !ganglia
|
||||
|
||||
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() {
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user