Closed SimonTheLeg closed 2 years ago
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
LGTM label has been added.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jiachengxu, SimonTheLeg
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Configure Cortex to accept HA samples from Prometheus (https://cortexmetrics.io/docs/guides/ha-pair-handling/#server-side). Pre-requisite for https://github.com/kubermatic/kubermatic/issues/7207
Has been tested on dev:
Before this PR: We can see that each prometheus replica is considered as a separate stream.![image](https://user-images.githubusercontent.com/20774623/140792967-b0a04638-dc4f-4c51-a153-a1531faf6e87.png)
After Cortex correctly strips the replica label off and only ingests values from one of the Prometheus instances. This can be seen by the number of streams, which is now only half of what it was before.![image](https://user-images.githubusercontent.com/20774623/140793238-936b6354-5fd0-4e7d-a1aa-979537e627b4.png)
The HA-Prometheus that was used for this test can be found in this PR: https://github.com/kubermatic/kubermatic/pull/8189. It makes sense to merge both of them together.