Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteButlerReloadVal(label string)
- func GetStatsLabel(file string) string
- func SetButlerConfigVal(res float64, repo string, file string)
- func SetButlerContactRetryVal(res float64, repo string, file string)
- func SetButlerContactVal(res float64, repo string, file string)
- func SetButlerKnownGoodCachedVal(res float64, label string)
- func SetButlerKnownGoodRestoredVal(res float64, label string)
- func SetButlerReloadVal(res float64, label string)
- func SetButlerReloaderRetry(res float64, manager string)
- func SetButlerRemoteRepoSanity(res float64, manager string)
- func SetButlerRemoteRepoUp(res float64, manager string)
- func SetButlerRenderVal(res float64, repo string, file string)
- func SetButlerRepoInSync(res float64, manager string)
- func SetButlerWriteVal(res float64, label string)
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 ¶
GetStatsLabel returns the filename of the provided file in url format.
func SetButlerConfigVal ¶
func SetButlerContactVal ¶
func SetButlerReloadVal ¶
func SetButlerReloaderRetry ¶
func SetButlerRemoteRepoUp ¶
func SetButlerRenderVal ¶
func SetButlerRepoInSync ¶
func SetButlerWriteVal ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.