localmetrics

package
v0.0.0-...-be237b4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricDeadMansSnitchHeartbeat = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "metricDeadMansSnitchHeartbeat",
		Help: "Metric for heartbeating the Dead Man's Snitch api",
	}, []string{"name"})

	MetricsList = []prometheus.Collector{
		MetricDeadMansSnitchHeartbeat,
	}
)

Functions

func UpdateMetricDeadMansSnitchHeartbeatGauge

func UpdateMetricDeadMansSnitchHeartbeatGauge()

UpdateMetricDeadMansSnitchHeartbeatGauge curls the DMS API, updates the gauge to 1 when successful.

func UpdateMetrics

func UpdateMetrics()

UpdateMetrics updates all the metrics ever 5 minutes

Types

This section is empty.

Jump to

Keyboard shortcuts

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