stats

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FAILURE float64 = 0 + iota
	SUCCESS
)

FAILURE and SUCCESS are float64 enumerations which are used to set the success or failure flags for the prometheus check gauges

These need to be outside of the previous const due to them being an enumeration, and putting them in the previous const will mess up the ordering.

Variables

View Source
var (
	// Prometheus metrics
	ButlerConfigValid       *prometheus.GaugeVec
	ButlerContactSuccess    *prometheus.GaugeVec
	ButlerContactTime       *prometheus.GaugeVec
	ButlerContactRetry      *prometheus.GaugeVec
	ButlerContactRetryTime  *prometheus.GaugeVec
	ButlerKnownGoodCached   *prometheus.GaugeVec
	ButlerKnownGoodRestored *prometheus.GaugeVec
	ButlerReloadCount       *prometheus.GaugeVec
	ButlerReloadSuccess     *prometheus.GaugeVec
	ButlerReloadTime        *prometheus.GaugeVec
	ButlerReloaderRetry     *prometheus.GaugeVec
	ButlerRenderSuccess     *prometheus.GaugeVec
	ButlerRenderTime        *prometheus.GaugeVec
	ButlerWriteSuccess      *prometheus.GaugeVec
	ButlerWriteTime         *prometheus.GaugeVec
	ButlerRemoteRepoUp      *prometheus.GaugeVec
	ButlerRemoteRepoSanity  *prometheus.GaugeVec
	ButlerRepoInSync        *prometheus.GaugeVec
)

Functions

func DeleteButlerReloadVal

func DeleteButlerReloadVal(label string)

func GetStatsLabel

func GetStatsLabel(file string) string

GetStatsLabel returns the filename of the provided file in url format.

func SetButlerConfigVal

func SetButlerConfigVal(res float64, repo string, file string)

func SetButlerContactRetryVal

func SetButlerContactRetryVal(res float64, repo string, file string)

func SetButlerContactVal

func SetButlerContactVal(res float64, repo string, file string)

func SetButlerKnownGoodCachedVal

func SetButlerKnownGoodCachedVal(res float64, label string)

func SetButlerKnownGoodRestoredVal

func SetButlerKnownGoodRestoredVal(res float64, label string)

func SetButlerReloadVal

func SetButlerReloadVal(res float64, label string)

func SetButlerReloaderRetry

func SetButlerReloaderRetry(res float64, manager string)

func SetButlerRemoteRepoSanity

func SetButlerRemoteRepoSanity(res float64, manager string)

func SetButlerRemoteRepoUp

func SetButlerRemoteRepoUp(res float64, manager string)

func SetButlerRenderVal

func SetButlerRenderVal(res float64, repo string, file string)

func SetButlerRepoInSync

func SetButlerRepoInSync(res float64, manager string)

func SetButlerWriteVal

func SetButlerWriteVal(res float64, label string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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