-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/thanos/query: add initial rules support
Signed-off-by: Sergiusz Urbaniak <sergiusz.urbaniak@gmail.com>
- Loading branch information
1 parent
932f2ee
commit 63f2a14
Showing
12 changed files
with
587 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) The Thanos Authors. | ||
// Licensed under the Apache License 2.0. | ||
|
||
package query | ||
|
||
import ( | ||
"github.com/prometheus/prometheus/rules" | ||
"github.com/thanos-io/thanos/pkg/store/storepb" | ||
) | ||
|
||
func NewRulesRetriever(rs storepb.RulesServer) *rulesRetriever { | ||
return &rulesRetriever{ | ||
rulesServer: rs, | ||
} | ||
} | ||
|
||
type rulesRetriever struct { | ||
rulesServer storepb.RulesServer | ||
} | ||
|
||
func (rr *rulesRetriever) RuleGroups() ([]*rules.Group, error) { | ||
return nil, nil | ||
} |
Oops, something went wrong.