mapserver/tiledb/prometheus.go
2019-06-13 08:04:32 +02:00

24 lines
621 B
Go

package tiledb
import (
"github.com/prometheus/client_golang/prometheus"
)
var (
tiledbSaveDuration = prometheus.NewHistogram(prometheus.HistogramOpts{
Name: "tiledb_save_durations",
Help: "Histogram for tiledb save timings",
Buckets: prometheus.LinearBuckets(0.005, 0.01, 10),
})
tiledbLoadDuration = prometheus.NewHistogram(prometheus.HistogramOpts{
Name: "tiledb_load_durations",
Help: "Histogram for tiledb load timings",
Buckets: prometheus.LinearBuckets(0.005, 0.01, 10),
})
)
func init() {
prometheus.MustRegister(tiledbSaveDuration)
prometheus.MustRegister(tiledbLoadDuration)
}