mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 20:35:53 +08:00
fix: label assignment issue in promql rules (#5920)
This commit is contained in:
parent
b60b26189f
commit
4799d3147b
@ -306,7 +306,11 @@ func (r *PromRule) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func toCommonSeries(series promql.Series) v3.Series {
|
func toCommonSeries(series promql.Series) v3.Series {
|
||||||
commonSeries := v3.Series{}
|
commonSeries := v3.Series{
|
||||||
|
Labels: make(map[string]string),
|
||||||
|
LabelsArray: make([]map[string]string, 0),
|
||||||
|
Points: make([]v3.Point, 0),
|
||||||
|
}
|
||||||
|
|
||||||
for _, lbl := range series.Metric {
|
for _, lbl := range series.Metric {
|
||||||
commonSeries.Labels[lbl.Name] = lbl.Value
|
commonSeries.Labels[lbl.Name] = lbl.Value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user