Documentation ¶
Index ¶
Constants ¶
const Namespace = "gitlab_authn"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics is an abstraction over several measurement trackers. Instead of exposing the various counters, gauges, histograms, ... this implementation exposes a simplified API for application specific scenarios.
func New ¶
func New(reg prometheus.Registerer) (*Metrics, error)
New returns a metrics abstraction layer which registers all its internal metrics with the provided prometheus.Registerer. All errors are the result of failed registrations.
func NewDefault ¶
NewDefault calls New with prometheus.DefaultRegisterer
func (*Metrics) AuthMalformed ¶
AuthMalformed tracks a failed authentication due to malformed user input.
func (*Metrics) AuthNotFound ¶
AuthNotFound tracks a failed authentication due to a lack of account information associated with the user input.
func (*Metrics) AuthSuccess ¶
AuthSuccess tracks a successful authentication.
func (*Metrics) AuthUnauthorized ¶
AuthUnauthorized tracks a failed authentication due to the user not being authorized to access the provided realm.