fix datasource prometheus metrics not being registered (#927)
This commit is contained in:
parent
589cb72d41
commit
ea640dfb6d
1 changed files with 6 additions and 6 deletions
|
@ -108,12 +108,6 @@ func runCrowdsec(cConfig *csconfig.Config, parsers *parser.Parsers) error {
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
outputWg.Wait()
|
outputWg.Wait()
|
||||||
log.Warningf("Starting processing data")
|
|
||||||
|
|
||||||
if err := acquisition.StartAcquisition(dataSources, inputLineChan, &acquisTomb); err != nil {
|
|
||||||
log.Fatalf("starting acquisition error : %s", err)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
if cConfig.Prometheus != nil && cConfig.Prometheus.Enabled {
|
if cConfig.Prometheus != nil && cConfig.Prometheus.Enabled {
|
||||||
aggregated := false
|
aggregated := false
|
||||||
|
@ -125,6 +119,12 @@ func runCrowdsec(cConfig *csconfig.Config, parsers *parser.Parsers) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
log.Warningf("Starting processing data")
|
||||||
|
|
||||||
|
if err := acquisition.StartAcquisition(dataSources, inputLineChan, &acquisTomb); err != nil {
|
||||||
|
log.Fatalf("starting acquisition error : %s", err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue