metrics

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterCount = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Subsystem: "autok3s",
		Name:      "cluster_count",
		Help:      "the cluster count for the current autok3s setup, label by provider and k3s version.",
	}, []string{"provider", "k3sversion", "install_uuid"})

	TemplateCount = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Subsystem: "autok3s",
		Name:      "cluster_template_count",
		Help:      "the cluster template count for the current autok3s setup, label by provider and k3s version.",
	}, []string{"provider", "k3sversion", "install_uuid"})

	Active = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Subsystem: "autok3s",
		Name:      "up",
		Help:      "the autok3s running status",
	}, []string{"install_uuid", "version"})
)

Functions

func Report added in v0.5.2

func Report()

func ReportEach added in v0.5.2

func ReportEach(ctx context.Context, interval time.Duration)

func SetupEnableFunc added in v0.5.2

func SetupEnableFunc(f func() bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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