Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServiceStateUndefined = iota ServiceStateDefined ServiceStateRunning ServiceStateStopped )
View Source
const (
LabelServiceIdentifier = "service_identifier"
)
Variables ¶
View Source
var ( ServiceState = promauto.NewGaugeVec(prometheus.GaugeOpts{ Namespace: "miniland", Name: "service_state", Help: "State of the service", }, []string{LabelServiceIdentifier}) ServicesDefined = promauto.NewGauge(prometheus.GaugeOpts{ Namespace: "miniland", Name: "services_defined", Help: "Number of services defined", }) ServiceRestarts = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: "miniland", Name: "service_restarts", Help: "Number of service restarts", }, []string{LabelServiceIdentifier}) )
Functions ¶
func ServeMetrics ¶
func ServeMetrics(addr string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.