Fix typo in cscli metrics and debug message (#1473)
* Fix typo in cscli metrics and debug message
This commit is contained in:
parent
8909fbdb22
commit
8074a233e8
|
@ -269,7 +269,7 @@ func ShowPrometheus(url string) {
|
||||||
log.Warningf("while collecting acquis stats : %s", err)
|
log.Warningf("while collecting acquis stats : %s", err)
|
||||||
}
|
}
|
||||||
bucketsTable := tablewriter.NewWriter(os.Stdout)
|
bucketsTable := tablewriter.NewWriter(os.Stdout)
|
||||||
bucketsTable.SetHeader([]string{"Bucket", "Current Count", "Overflows", "Instanciated", "Poured", "Expired"})
|
bucketsTable.SetHeader([]string{"Bucket", "Current Count", "Overflows", "Instantiated", "Poured", "Expired"})
|
||||||
keys = []string{"curr_count", "overflow", "instanciation", "pour", "underflow"}
|
keys = []string{"curr_count", "overflow", "instanciation", "pour", "underflow"}
|
||||||
if err := metricsToTable(bucketsTable, buckets_stats, keys); err != nil {
|
if err := metricsToTable(bucketsTable, buckets_stats, keys); err != nil {
|
||||||
log.Warningf("while collecting acquis stats : %s", err)
|
log.Warningf("while collecting acquis stats : %s", err)
|
||||||
|
|
|
@ -23,7 +23,7 @@ func runPour(input chan types.Event, holders []leaky.BucketFactory, buckets *lea
|
||||||
case parsed := <-input:
|
case parsed := <-input:
|
||||||
count++
|
count++
|
||||||
if count%5000 == 0 {
|
if count%5000 == 0 {
|
||||||
log.Warningf("%d existing LeakyRoutine", leaky.LeakyRoutineCount)
|
log.Infof("%d existing buckets", leaky.LeakyRoutineCount)
|
||||||
//when in forensics mode, garbage collect buckets
|
//when in forensics mode, garbage collect buckets
|
||||||
if cConfig.Crowdsec.BucketsGCEnabled {
|
if cConfig.Crowdsec.BucketsGCEnabled {
|
||||||
if parsed.MarshaledTime != "" {
|
if parsed.MarshaledTime != "" {
|
||||||
|
|
Loading…
Reference in a new issue