-
Notifications
You must be signed in to change notification settings - Fork 832
Closed
Labels
keepaliveSkipped by stale botSkipped by stale botstorage/chunksChunks storage engineChunks storage engine
Description
This is not a documented feature of the remote write protocol; it happens to be the way Prometheus 2 works but Prometheus 1 didn't send labels sorted.
cortex/pkg/distributor/distributor.go
Lines 252 to 253 in f91f757
if strings.Compare(lastLabelName, label.Name) >= 0 { | |
return 0, fmt.Errorf("Labels not sorted") |
If we decide Cortex has this requirement we should document it and remove the surplus Sort()
here:
cortex/pkg/ingester/index/index.go
Line 143 in f91f757
sort.Sort(internedLabels) |
Metadata
Metadata
Assignees
Labels
keepaliveSkipped by stale botSkipped by stale botstorage/chunksChunks storage engineChunks storage engine