do not spam with "unknown" metrics

This commit is contained in:
Sebastien Blot 2023-12-05 00:15:29 +01:00
parent 722ce46946
commit 1a1f4f6169
No known key found for this signature in database
GPG key ID: DFC2902F40449F6A

View file

@ -249,7 +249,7 @@ func FormatPrometheusMetrics(out io.Writer, url string, formatType string) error
} }
appsec_rule_stats[appsecEngine][ruleID]["triggered"] = ival appsec_rule_stats[appsecEngine][ruleID]["triggered"] = ival
default: default:
log.Infof("unknown: %+v", fam.Name) log.Debugf("unknown: %+v", fam.Name)
continue continue
} }
} }