-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAB-16695 Re-use metrics for comm GRPCServer
Today, the comm.NewGRPCServer code creates and registers metrics, given a supplied metrics provider. This is problematic because we should only have one metrics provider, and re-registering a metric causes a panic. Thus, if the admin service, or the Raft cluster service are put onto different ports when Prometheus is enabled, the result is a crash. This CR fixes both peer and orderer initialization to re-use the metric components across servers. Signed-off-by: Jason Yellick <jyellick@us.ibm.com> Change-Id: I80a33c1a3bd4cb25b08ca09297b098b11963dbba
- Loading branch information
Jason Yellick
committed
Sep 27, 2019
1 parent
0ac4069
commit ad1b514
Showing
6 changed files
with
22 additions
and
32 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