-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#6506] Platform: Prometheus: Changes for Federation
Summary: Add ability to build a federated prometheus model for the HA cluster such that follower platform prometheus's read from the leader prometheus instead of directly scraping nodes. When a node is promoted we then switch back to the normal prom config. Since we're overwriting a file that is technically managed by replicated, we sort of have to "wrestle with replicated" and always keep ensuring that the correct file that the platform expects to be there is there. So during app startup + during each sync schedule we will ensure the correct file is present. This is to solve the not-to-be-expected too often scenario of replicated re-deploying the containers during stuff like YW upgrades or maintenance. Test Plan: Tested some of the bug fixes in here in the platform HA sandbox by manually patching them. Tested switching prometheus config locally by writing a simple test API that called the code to generate the federated config, swap out the old one + reload the config through API. Reviewers: sanketh, sb-yb Reviewed By: sb-yb Subscribers: jenkins-bot Differential Revision: https://phabricator.dev.yugabyte.com/D10576
- Loading branch information
Showing
25 changed files
with
599 additions
and
267 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
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
Oops, something went wrong.