mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 11:38:32 +01: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"))
|
|
}
|