-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[file-sd-part-4] Added flag for query addresses to ruler #555
Conversation
fca9f88
to
5bf8121
Compare
3f90e9a
to
a2d9591
Compare
0c68519
to
b9a7cf0
Compare
a2d9591
to
a337452
Compare
b9a7cf0
to
75ea2e7
Compare
a337452
to
d81dd66
Compare
75ea2e7
to
965b239
Compare
d81dd66
to
e37fc01
Compare
@@ -192,6 +212,8 @@ func runRule( | |||
// back or the context get canceled. | |||
queryFn := func(ctx context.Context, q string, t time.Time) (promql.Vector, error) { | |||
var addrs []string | |||
// Add addresses from static flag | |||
addrs = append(addrs, queryAddrs...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Within queryFn
do we want to remove duplicates if they exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May even want to do this in #547 as we could supply a value in the file that its picked up by gossip as well if both systems are running.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in #547
965b239
to
e5c31e4
Compare
e37fc01
to
db61524
Compare
e5c31e4
to
e5bcfed
Compare
db61524
to
6150f6b
Compare
e5bcfed
to
7180ccc
Compare
d6e4c5a
to
136d7d6
Compare
28392c6
to
7d55dfc
Compare
136d7d6
to
b7ec7a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ... can we make sure these changes are reflected in the CHANGELOG?
7d55dfc
to
3e4abbd
Compare
b7ec7a0
to
2e1dfe9
Compare
…ns (#556) * Added tests for rule filesd and static flags
Changes
Adds the option to statically configure the queriers that ruler talks to via a command line flag.
Not exactly fileSD related, but it can be useful as a static alternative to gossip.
Verification
Validated in a following PR - (#556)