metrics

package
v1.3.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL