Open ToonTijtgat2 opened 1 week ago
@thampiotr Thanks for running the tests, I adapted the code according to the results. can you please run them again? Thanks
Did a new commit with fixes. @thampiotr, let's hope it's better now.
use sync loki instead of eventprocessor. I hope this solves it @thampiotr
@thampiotr Thanks for running the tests, made some mistakes I tried to solve now, can you run them again for https://github.com/grafana/alloy/pull/1057 and https://github.com/grafana/alloy/pull/1058? Thanks
Dear @thampiotr, I added to sync state to the iteration, that was missing. To be honest, I'm not sure if I'm going to the correct direction with this PR.
For the PR of https://github.com/grafana/alloy/pull/1058 It seems I'm more close to the end. since it's only the test that's failing (hopefully resolved by my last commit.)
PR Description
This change adds support for updating Loki rules based on PrometheusRule objects when running in clustered mode. It does this by picking a single instance to be the leader responsible for making changes using the Loki API. Other non-leader instances will not process events or make calls to the Loki API.
Which issue(s) this PR fixes
Fixes #976
Notes to the Reviewer
PR Checklist