Skip to content

Commit

Permalink
pkg/thanos: prefix gate metrics for concurrent selects
Browse files Browse the repository at this point in the history
Thanos query exposed `gate_queries_in_flight` and
`gate_duration_seconds_bucket` metrics for concurrent selects. These
metrics are now prefixed by `thanos_query_concurrent_selects_`.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
  • Loading branch information
simonpasquier committed Sep 11, 2020
1 parent e0b7f7b commit 60950ff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/thanos/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,14 @@ func runQuery(
)
proxy = store.NewProxyStore(logger, reg, stores.Get, component.Query, selectorLset, storeResponseTimeout)
rulesProxy = rules.NewProxy(logger, stores.GetRulesClients)
queryableCreator = query.NewQueryableCreator(logger, reg, proxy, maxConcurrentSelects, queryTimeout)
engine = promql.NewEngine(
queryableCreator = query.NewQueryableCreator(
logger,
extprom.WrapRegistererWithPrefix("thanos_query_concurrent_selects_", reg),
proxy,
maxConcurrentSelects,
queryTimeout,
)
engine = promql.NewEngine(
promql.EngineOpts{
Logger: logger,
Reg: reg,
Expand Down

0 comments on commit 60950ff

Please sign in to comment.