Add an option to expose Prometheus metrics via http/s server #1323
ci.yaml
on: pull_request
yamllint
/
yamllint
10s
golangci-lint
/
golangci-lint
1m 9s
exclude-fmt-errorf
/
exclude-fmt-errorf
4s
restrict-nsm-deps
/
restrict-nsm-deps
3s
checkgomod
/
checkgomod
37s
exclude-replace
/
excludereplace
3s
Capture CI Run Env
0s
Matrix: build-and-test / build-and-test
Annotations
4 errors and 1 warning
golangci-lint / golangci-lint:
pkg/networkservice/metrics/stats/prometheus.go#L74
don't use `init` function (gochecknoinits)
|
golangci-lint / golangci-lint:
pkg/networkservice/metrics/stats/common.go#L53
string `server_` has 2 occurrences, make it a constant (goconst)
|
golangci-lint / golangci-lint:
pkg/networkservice/metrics/stats/prometheus.go#L1
Missed header for check (goheader)
|
golangci-lint / golangci-lint
issues found
|
golangci-lint / golangci-lint:
pkg/networkservice/metrics/stats/prometheus.go#L9
exported: exported var ClientRxBytes should have comment or be unexported (revive)
|