Debian Codegraph @

cmd/atomdns/handlers/sign/metrics.go

raw
1 package sign
2
3 import (
4 "github.com/prometheus/client_golang/prometheus"
5 "github.com/prometheus/client_golang/prometheus/promauto"
6 )
7
8 var (
9 // Duration is the metric used for exporting how fast we can sign each zone..
10 Duration = promauto.NewGaugeVec(prometheus.GaugeOpts{
11 Namespace: Namespace,
12 Subsystem: (&Sign{}).Key(),
13 Name: "duration_seconds",
14 Help: "Time (in seconds) each zone signing took.",
15 }, []string{"zone"})
16 // Expire is the metric used to track the signature expire.
17 Expire = promauto.NewGaugeVec(prometheus.GaugeOpts{
18 Namespace: Namespace,
19 Subsystem: (&Sign{}).Key(),
20 Name: "rrsig_expire_timestamp",
21 Help: "The zone's signature expire in unix epoch.",
22 }, []string{"zone"})
23 )
24
25 const (
26 Namespace = "atomdns"
27 )