Merge branch 'main' of github.com:ccfos/nightingale

This commit is contained in:
Ulric Qin 2022-10-12 20:37:34 +08:00
commit 445d03e096
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ func labelsToLabelsProto(labels model.Metric, rule *models.RecordingRule) (resul
}
result = append(result, nameLs)
for k, v := range labels {
if k == LabelName {
continue
}
if model.LabelNameRE.MatchString(string(k)) {
result = append(result, &prompb.Label{
Name: string(k),