mirror of
https://github.com/Luzifer/continuous-spark.git
synced 2024-10-18 04:44:24 +00:00
19 lines
477 B
Go
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)
|
|
}
|