Signed-off-by: Henri DF <henridf@gmail.com>
This commit is contained in:
Henri DF 2018-07-26 00:49:53 -07:00 committed by Brian Brazil
parent 8763dedb9d
commit 3abb2cc349
2 changed files with 3 additions and 3 deletions

View File

@ -68,9 +68,9 @@ func (q *querier) Close() error {
return nil
}
// ExternablLabelsHandler returns a storage.Queryable which creates a
// ExternalLabelsHandler returns a storage.Queryable which creates a
// externalLabelsQuerier.
func ExternablLabelsHandler(next storage.Queryable, externalLabels model.LabelSet) storage.Queryable {
func ExternalLabelsHandler(next storage.Queryable, externalLabels model.LabelSet) storage.Queryable {
return storage.QueryableFunc(func(ctx context.Context, mint, maxt int64) (storage.Querier, error) {
q, err := next.Querier(ctx, mint, maxt)
if err != nil {

View File

@ -107,7 +107,7 @@ func (s *Storage) ApplyConfig(conf *config.Config) error {
}
q := QueryableClient(c)
q = ExternablLabelsHandler(q, conf.GlobalConfig.ExternalLabels)
q = ExternalLabelsHandler(q, conf.GlobalConfig.ExternalLabels)
if len(rrConf.RequiredMatchers) > 0 {
q = RequiredMatchersFilter(q, labelsToEqualityMatchers(rrConf.RequiredMatchers))
}