[#565] Add metrics for current GRPC endpoint status
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
c3e23a1448
commit
4ad0ebb32f
5 changed files with 50 additions and 0 deletions
|
@ -17,6 +17,7 @@ type NodeMetrics struct {
|
|||
blobobvnizca *blobovnizca
|
||||
metabase *metabaseMetrics
|
||||
pilorama *piloramaMetrics
|
||||
grpc *grpcServerMetrics
|
||||
}
|
||||
|
||||
func NewNodeMetrics() *NodeMetrics {
|
||||
|
@ -37,6 +38,7 @@ func NewNodeMetrics() *NodeMetrics {
|
|||
blobobvnizca: newBlobovnizca(),
|
||||
metabase: newMetabaseMetrics(),
|
||||
pilorama: newPiloramaMetrics(),
|
||||
grpc: newGrpcServerMetrics(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -84,3 +86,7 @@ func (m *NodeMetrics) MetabaseMetrics() MetabaseMetrics {
|
|||
func (m *NodeMetrics) PiloramaMetrics() PiloramaMetrics {
|
||||
return m.pilorama
|
||||
}
|
||||
|
||||
func (m *NodeMetrics) GrpcServerMetrics() GrpcServerMetrics {
|
||||
return m.grpc
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue