Merge branch 'main' of github.com:ccfos/nightingale
This commit is contained in:
commit
445d03e096
|
@ -96,6 +96,9 @@ func labelsToLabelsProto(labels model.Metric, rule *models.RecordingRule) (resul
|
||||||
}
|
}
|
||||||
result = append(result, nameLs)
|
result = append(result, nameLs)
|
||||||
for k, v := range labels {
|
for k, v := range labels {
|
||||||
|
if k == LabelName {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if model.LabelNameRE.MatchString(string(k)) {
|
if model.LabelNameRE.MatchString(string(k)) {
|
||||||
result = append(result, &prompb.Label{
|
result = append(result, &prompb.Label{
|
||||||
Name: string(k),
|
Name: string(k),
|
||||||
|
|
Loading…
Reference in New Issue