-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error explanation and metrics. Increase state lifetiem to 6 hours
- Loading branch information
Showing
4 changed files
with
84 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package main | ||
|
||
import "github.com/VictoriaMetrics/metrics" | ||
|
||
var getAuthUrlRequestsTotal = metrics.NewCounter(`get_auth_url_requests_total`) | ||
var completeAuthRequestsTotal = metrics.NewCounter(`complete_auth_requests_total`) | ||
|
||
var authErrorExpiredStateTotal = metrics.NewCounter(`auth_error{error="expired_state"}`) | ||
var authErrorWrongStateTotal = metrics.NewCounter(`auth_error{error="wrong_state"}`) | ||
var authErrorFailGetTokenTotal = metrics.NewCounter(`auth_error{error="fail_get_token"}`) | ||
var authErrorFailGetUserTotal = metrics.NewCounter(`auth_error{error="fail_get_user"}`) | ||
var authErrorFailFinishAuthTotal = metrics.NewCounter(`auth_error{error="fail_finish_auth"}`) |