mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-07-31 08:56:06 +02:00
Return error at Init for skip collectors early
This commit is contained in:
@@ -13,9 +13,10 @@ type LoadavgCollector struct {
|
||||
MetricCollector
|
||||
}
|
||||
|
||||
func (m *LoadavgCollector) Init() {
|
||||
func (m *LoadavgCollector) Init() error {
|
||||
m.name = "LoadavgCollector"
|
||||
m.setup()
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *LoadavgCollector) Read(interval time.Duration) {
|
||||
|
Reference in New Issue
Block a user