Alerting: Fix feedback (#57922)

This commit is contained in:
George Robinson 2022-11-02 22:36:14 +00:00 committed by GitHub
parent 215ffee437
commit f2e4cb7c4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,13 +205,13 @@ func (r *LotexRuler) validateAndGetPrefix(ctx *models.ReqContext) (string, error
subTypePrefix, ok := subtypeToPrefix[subtype]
if !ok {
r.log.Debug(
"unable to determine prometheus datasource subtype, using default prefix",
"datasource", ds.Uid, "datasource_type", ds.Type, "subtype", subtype, "prefix", prefix)
"Unable to determine prometheus datasource subtype, using default prefix",
"datasource", ds.Uid, "datasourceType", ds.Type, "subtype", subtype, "prefix", prefix)
return prefix, nil
}
r.log.Debug("determined prometheus datasource subtype",
"datasource", ds.Uid, "datasource_type", ds.Type, "subtype", subtype)
r.log.Debug("Determined prometheus datasource subtype",
"datasource", ds.Uid, "datasourceType", ds.Type, "subtype", subtype)
return subTypePrefix, nil
}