Skip to content

Commit fcef75b

Browse files
committed
Implementing MatadataAppender intgerface on ruler
1 parent 9c8bfd5 commit fcef75b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/ruler/compat.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/prometheus/client_golang/prometheus/promauto"
1212
"github.com/prometheus/prometheus/model/exemplar"
1313
"github.com/prometheus/prometheus/model/labels"
14+
"github.com/prometheus/prometheus/model/metadata"
1415
"github.com/prometheus/prometheus/model/value"
1516
"github.com/prometheus/prometheus/notifier"
1617
"github.com/prometheus/prometheus/promql"
@@ -86,6 +87,10 @@ func (a *PusherAppender) Commit() error {
8687
return err
8788
}
8889

90+
func (a *PusherAppender) UpdateMetadata(_ storage.SeriesRef, _ labels.Labels, _ metadata.Metadata) (storage.SeriesRef, error) {
91+
return 0, errors.New("update metadata unsupported")
92+
}
93+
8994
func (a *PusherAppender) Rollback() error {
9095
a.labels = nil
9196
a.samples = nil

0 commit comments

Comments
 (0)