blob: 371710d60b279d5e6a7ad12c856699c98914a150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Package x is a hack
package x
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
Version = "devel"
gauge *prometheus.GaugeVec
)
func init() {
gauge = promauto.NewGaugeVec(prometheus.GaugeOpts{
Name: "within_website_x_version",
Help: "The version of within.website/x in use.",
}, []string{"version"})
gauge.WithLabelValues(Version).Inc()
}
|