mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-27 06:35:52 -05:00
2434d76ade
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
26 lines
937 B
Go
26 lines
937 B
Go
package hscontrol
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
const prometheusNamespace = "headscale"
|
|
|
|
var (
|
|
// This is a high cardinality metric (user x machines), we might want to make this
|
|
// configurable/opt-in in the future.
|
|
machineRegistrations = promauto.NewCounterVec(prometheus.CounterOpts{
|
|
Namespace: prometheusNamespace,
|
|
Name: "machine_registrations_total",
|
|
Help: "The total amount of registered machine attempts",
|
|
}, []string{"action", "auth", "status", "user"})
|
|
|
|
updateRequestsSentToNode = promauto.NewCounterVec(prometheus.CounterOpts{
|
|
Namespace: prometheusNamespace,
|
|
Name: "update_request_sent_to_node_total",
|
|
Help: "The number of calls/messages issued on a specific nodes update channel",
|
|
}, []string{"user", "machine", "status"})
|
|
// TODO(kradalby): This is very debugging, we might want to remove it.
|
|
)
|