forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-7423] Make all inter-container communication go through docker …
…gateway + fix YBA scraping Summary: Currently we're using host interface for yugaware<->prometheus communications. We shouldn't do that. Hense, we need to make prometheus and yugaware continers be exposed on both docker gateway and host interfaces in Replicated environment. And we need the rest of the code to use internal/external urls/ips/ports where needed. Another issue was that prometheus port was hardcoded in some places in backup script - passed configured port everwhere. As a result - yugaware and prometheus containers will continue to listen on ports 9000/9443 and 9090 on the host interface - for external communications. But will also listen on ports 9100/9543 and 9190 on docker gateway interface for all inter-container comunications. Test Plan: Installed Replicated YBA. Make sure yugaware and prometheus targets are scraped by Prometheus. Make sure yugaware queries metrics and alerts from prometheus successfully. Make sure host IP is used in Prometheus links in YBA UI. Start YBA locally. Make sure local prometheus URL is used in links in YBA UI. Reviewers: vbansal, sanketh, sb-yb Reviewed By: sb-yb Subscribers: jenkins-bot, yugaware Differential Revision: https://phabricator.dev.yugabyte.com/D23312
- Loading branch information
1 parent
e1ef49f
commit 4467546
Showing
24 changed files
with
163 additions
and
94 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
Oops, something went wrong.