Metrics interface and Prometheus implementation (#1929)

* Metrics interface

* Prometheus implementation

* NoOp implementation

Co-authored-by: chris <chris@Profanity.local>
This commit is contained in:
Prawn
2020-08-18 19:27:50 +12:00
committed by GitHub
parent e1248f90f4
commit da4159513e
14 changed files with 577 additions and 1 deletions

2
go.mod
View File

@@ -52,6 +52,7 @@ require (
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.7.0
github.com/soheilhy/cmux v0.1.4 // indirect
github.com/stretchr/testify v1.5.1
github.com/teris-io/shortid v0.0.0-20171029131806-771a37caa5cf
@@ -69,4 +70,3 @@ require (
)
replace google.golang.org/grpc => google.golang.org/grpc v1.26.0