Fix labels cardinality error when registering unknown pre-auth key

This commit is contained in:
hdhoang committed 2022-03-21 15:49:14 +07:00
1 parent 9a632c17d1
commit 52fd13bfc4
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -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