mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
lib/promscrape: add missing label sorting for autogenerated metrics
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/592
This commit is contained in:
parent
b42cf33c4d
commit
5a43842bd3
1 changed files with 1 additions and 0 deletions
|
@ -248,6 +248,7 @@ func (sw *scrapeWork) addRowToTimeseries(r *parser.Row, timestamp int64, needRel
|
|||
sw.labels = promrelabel.ApplyRelabelConfigs(sw.labels, labelsLen, sw.Config.MetricRelabelConfigs, true)
|
||||
} else {
|
||||
sw.labels = promrelabel.FinalizeLabels(sw.labels[:labelsLen], sw.labels[labelsLen:])
|
||||
promrelabel.SortLabels(sw.labels[labelsLen:])
|
||||
}
|
||||
if len(sw.labels) == labelsLen {
|
||||
// Skip row without labels.
|
||||
|
|
Loading…
Reference in a new issue