mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
app/vmselect/promql: fix TestVmrangeBucketsToLE test after 8516670582
Remove 'AccountID=0, ProjectID=0, ' prefix for cluster version
This commit is contained in:
parent
5e43145031
commit
21f588e9cf
1 changed files with 1 additions and 0 deletions
|
@ -214,6 +214,7 @@ func timeseriesToPromMetrics(tss []*timeseries) string {
|
|||
for _, ts := range tss {
|
||||
metricName := ts.MetricName.String()
|
||||
for i := range ts.Timestamps {
|
||||
metricName = strings.TrimPrefix(metricName, "AccountID=0, ProjectID=0, ")
|
||||
line := fmt.Sprintf("%s %v %d", metricName, ts.Values[i], ts.Timestamps[i])
|
||||
a = append(a, line)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue