mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 15:09:05 +01:00
Merge branch 'main' into develop
This commit is contained in:
commit
b0423b842d
@ -285,6 +285,9 @@ func (m *LikwidCollector) Init(config json.RawMessage) error {
|
||||
} else if !testLikwidMetricFormula(metric.Calc, globalParams) {
|
||||
cclog.ComponentError(m.name, "Metric", metric.Name, "cannot be calculated with given counters")
|
||||
metric.Calc = ""
|
||||
} else if !checkMetricType(metric.Type) {
|
||||
cclog.ComponentError(m.name, "Metric", metric.Name, "has invalid type")
|
||||
metric.Calc = ""
|
||||
} else {
|
||||
totalMetrics++
|
||||
}
|
||||
@ -328,7 +331,6 @@ func (m *LikwidCollector) Init(config json.RawMessage) error {
|
||||
}
|
||||
|
||||
m.basefreq = getBaseFreq()
|
||||
|
||||
m.measureThread = thread.New()
|
||||
m.init = true
|
||||
return nil
|
||||
@ -587,6 +589,7 @@ func (m *LikwidCollector) calcGlobalMetrics(groups []LikwidEventsetConfig, inter
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
func (m *LikwidCollector) ReadThread(interval time.Duration, output chan lp.CCMetric) {
|
||||
var err error = nil
|
||||
groups := make([]LikwidEventsetConfig, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user