1
0
Fork 0
mirror of https://github.com/Luzifer/continuous-spark.git synced 2024-10-18 04:44:24 +00:00
continuous-spark/metrics.go
Knut Ahlers 5d9ae1fde5
Initial version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-07-26 11:29:10 +02:00

19 lines
477 B
Go

package main
import "github.com/prometheus/client_golang/prometheus"
var (
pingAvg = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "sparkyfish_ping_avg",
Help: "Average ping of the test run (ms)",
})
thresholdAvg = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "sparkyfish_threshold_avg",
Help: "Average threshold of the test run (bps)",
}, []string{"direction"})
)
func init() {
prometheus.MustRegister(pingAvg)
prometheus.MustRegister(thresholdAvg)
}