Provide info to CollectorManager whether the collector can be executed in parallel with others

This commit is contained in:
Thomas Roehl
2022-05-13 12:20:23 +02:00
parent ee4bd558f1
commit 7b804ad7a2
22 changed files with 56 additions and 10 deletions

View File

@@ -28,6 +28,7 @@ type TopProcsCollector struct {
func (m *TopProcsCollector) Init(config json.RawMessage) error {
var err error
m.name = "TopProcsCollector"
m.parallel = true
m.tags = map[string]string{"type": "node"}
m.meta = map[string]string{"source": m.name, "group": "TopProcs"}
if len(config) > 0 {