Fix labels cardinality error when registering unknown pre-auth key
This commit is contained in:
parent
9a632c17d1
commit
52fd13bfc4
2 changed files with 5 additions and 1 deletions
2
api.go
2
api.go
|
@ -573,7 +573,7 @@ func (h *Headscale) handleAuthKey(
|
|||
machineRegistrations.WithLabelValues("new", RegisterMethodAuthKey, "error", pak.Namespace.Name).
|
||||
Inc()
|
||||
} else {
|
||||
machineRegistrations.WithLabelValues("new", RegisterMethodAuthKey, "error").Inc()
|
||||
machineRegistrations.WithLabelValues("new", RegisterMethodAuthKey, "error", "unknown").Inc()
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue