mirror of
https://github.com/jetkvm/kvm.git
synced 2025-09-16 08:38:14 +00:00
Enable more golangci-lint linters. * `forbidigo` to stop use of non-logger console printing. * `goimports` to make sure `import` blocks are formatted nicely. * `misspell` to catch spelling mistakes. * `whitespace` to catch whitespace issues. Signed-off-by: SuperQ <superq@gmail.com>
14 lines
363 B
Go
14 lines
363 B
Go
package kvm
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
versioncollector "github.com/prometheus/client_golang/prometheus/collectors/version"
|
|
"github.com/prometheus/common/version"
|
|
)
|
|
|
|
func initPrometheus() {
|
|
// A Prometheus metrics endpoint.
|
|
version.Version = builtAppVersion
|
|
prometheus.MustRegister(versioncollector.NewCollector("jetkvm"))
|
|
}
|