Enable metrics on /metrics, add '--environment' flag, add 'xxx_info' gauge
Showing
- go.mod 2 additions, 1 deletiongo.mod
- go.sum 228 additions, 0 deletionsgo.sum
- prometheus_middleware.go 31 additions, 0 deletionsprometheus_middleware.go
- server.go 5 additions, 0 deletionsserver.go
- templates/server/cmd.gotmpl 16 additions, 1 deletiontemplates/server/cmd.gotmpl
- templates/server/cmdServe.gotmpl 16 additions, 0 deletionstemplates/server/cmdServe.gotmpl
... | ... | @@ -10,7 +10,7 @@ |
github.com/go-openapi/swag v0.19.9 | ||
github.com/golang-migrate/migrate/v4 v4.12.2 | ||
github.com/jmoiron/sqlx v1.2.1-0.20200615141059-0794cb1f47ee | ||
github.com/json-iterator/go v1.1.6 | ||
github.com/json-iterator/go v1.1.10 | ||
github.com/justinas/alice v1.2.0 | ||
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 | ||
github.com/orus-io/go-flags v1.4.0 | ||
... | ... | @@ -14,6 +14,7 @@ |
github.com/justinas/alice v1.2.0 | ||
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 | ||
github.com/orus-io/go-flags v1.4.0 | ||
github.com/prometheus/client_golang v1.8.0 | ||
github.com/rs/zerolog v1.19.0 | ||
github.com/stretchr/testify v1.6.1 | ||
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a | ||
... | ... |
This diff is collapsed.
prometheus_middleware.go
0 → 100644
Please register or sign in to comment