mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 06:29:42 -08:00
promql: validate label_join
destination label
Signed-off-by: tdakkota <tanc13@yandex.ru>
This commit is contained in:
parent
c05c15512a
commit
17e2c30754
|
@ -1386,6 +1386,9 @@ func (ev *evaluator) evalLabelJoin(args parser.Expressions) (parser.Value, annot
|
||||||
}
|
}
|
||||||
srcLabels[i-3] = src
|
srcLabels[i-3] = src
|
||||||
}
|
}
|
||||||
|
if !model.LabelName(dst).IsValid() {
|
||||||
|
panic(fmt.Errorf("invalid destination label name in label_join(): %s", dst))
|
||||||
|
}
|
||||||
|
|
||||||
val, ws := ev.eval(args[0])
|
val, ws := ev.eval(args[0])
|
||||||
matrix := val.(Matrix)
|
matrix := val.(Matrix)
|
||||||
|
|
Loading…
Reference in a new issue