Skip to content

Commit

Permalink
Merge pull request #519 from hdhoang/pak-counter
Browse files Browse the repository at this point in the history
Fix labels cardinality error when registering unknown pre-auth key
  • Loading branch information
juanfont authored Mar 24, 2022
2 parents 9a632c1 + 52fd13b commit b5aace6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 0.16.0 (2022-xx-xx)

### Changes

- Fix labels cardinality error when registering unknown pre-auth key [#519](https://github.com/juanfont/headscale/pull/519)

## 0.15.0 (2022-03-20)

**Note:** Take a backup of your database before upgrading.
Expand Down
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5aace6

Please sign in to comment.