Skip to content

Commit

Permalink
Wire up exemplar to proxystorage (will now return errors instead of
Browse files Browse the repository at this point in the history
panic)

Related to #420
  • Loading branch information
jacksontj committed Nov 2, 2021
1 parent 2d3d054 commit b271e7f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
21 changes: 11 additions & 10 deletions cmd/promxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,17 @@ func main() {
scrapeManager := scrape.NewManager(nil, kitlog.With(logger, "component", "scrape manager"), nil)

webOptions := &web.Options{
Registerer: prometheus.DefaultRegisterer,
Gatherer: prometheus.DefaultGatherer,
Context: ctx,
Storage: proxyStorage,
LocalStorage: ps,
QueryEngine: engine,
ScrapeManager: scrapeManager,
RuleManager: ruleManager,
Notifier: notifierManager,
LookbackDelta: opts.QueryLookbackDelta,
Registerer: prometheus.DefaultRegisterer,
Gatherer: prometheus.DefaultGatherer,
Context: ctx,
Storage: proxyStorage,
LocalStorage: ps,
ExemplarStorage: ps,
QueryEngine: engine,
ScrapeManager: scrapeManager,
RuleManager: ruleManager,
Notifier: notifierManager,
LookbackDelta: opts.QueryLookbackDelta,

RemoteReadConcurrencyLimit: opts.RemoteReadMaxConcurrency,

Expand Down
4 changes: 4 additions & 0 deletions pkg/proxystorage/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ func (p *ProxyStorage) ChunkQuerier(ctx context.Context, mint, maxt int64) (stor
return nil, errors.New("not implemented")
}

func (p *ProxyStorage) ExemplarQuerier(ctx context.Context) (storage.ExemplarQuerier, error) {
return nil, errors.New("not implemented")
}

func (p *ProxyStorage) WALReplayStatus() (tsdb.WALReplayStatus, error) {
return tsdb.WALReplayStatus{}, errors.New("not implemented")
}
Expand Down

0 comments on commit b271e7f

Please sign in to comment.