Skip to content

Commit

Permalink
NewAPI now receives a StatsRenderer
Browse files Browse the repository at this point in the history
The initialization constructor of v1.NewAPI now accepts a StatsRendered.
I assume we're not using this yet so I'm passing nil.

Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
  • Loading branch information
jesusvazquez committed Apr 13, 2022
1 parent ab32a89 commit 1527169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/handlers.go
Expand Up @@ -223,6 +223,7 @@ func NewQuerierHandler(
// This is used for the stats API which we should not support. Or find other ways to.
prometheus.GathererFunc(func() ([]*dto.MetricFamily, error) { return nil, nil }),
reg,
nil,
)

router := mux.NewRouter()
Expand Down
1 change: 1 addition & 0 deletions pkg/querier/error_translate_queryable_test.go
Expand Up @@ -158,6 +158,7 @@ func createPrometheusAPI(q storage.SampleAndChunkQueryable) *route.Router {
&v1.PrometheusVersion{},
prometheus.DefaultGatherer,
nil,
nil,
)

promRouter := route.New().WithPrefix("/api/v1")
Expand Down

0 comments on commit 1527169

Please sign in to comment.