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