Documentation ¶
Overview ¶
Package operations contains all the handlers to convert Auth0 log events (https://auth0.com/docs/deploy-monitor/logs/log-event-type-codes) into prometheus metrics https://docs.google.com/spreadsheets/d/13PsnaBS29mUIjis0HdrpnIrJ_L2rBl2m5dTeYGN46Ho/edit#gid=0
Index ¶
Constants ¶
View Source
const (
TenantSendEmailOperations = "tenant_send_email_operations_total"
)
Variables ¶
This section is empty.
Functions ¶
func APIOperationFailCounterMetric ¶ added in v0.1.0
func APIOperationFailCounterMetric(namespace, subsystem string, applications []*management.Client) *prometheus.CounterVec
func APIOperationTotalCounterMetric ¶ added in v0.1.0
func APIOperationTotalCounterMetric(namespace, subsystem string, applications []*management.Client) *prometheus.CounterVec
Types ¶
type LogEventFunc ¶
type LogEventFunc func(m *Metrics, log *management.Log) error
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
See the NewMetrics func for proper descriptions and prometheus names! In case you add a metric here later, make sure to include it in the List method or you'll going to have a bad time.
func New ¶
func New(namespace, subsystem string, applications []*management.Client) *Metrics
Creates and populates a new Metrics struct This is where all the prometheus metrics, names and labels are specified
func (*Metrics) List ¶
func (m *Metrics) List() []prometheus.Collector
List is needed by the server so it can register and collect these metrics
func (*Metrics) ProcessUsers ¶ added in v0.2.0
func (m *Metrics) ProcessUsers(users []*management.User) error
Source Files ¶
- api_operation_counter.go
- change_email_counter.go
- change_password_counter.go
- change_password_request_counter.go
- change_phone_number_counter.go
- delete_user_counter.go
- doc.go
- login_counter.go
- logout_counter.go
- metrics.go
- mfa_counter.go
- monthly_active_users.go
- passwordless_code_link_counter.go
- post_change_password_hook_counter.go
- push_notification_counter.go
- send_email_counter.go
- send_sms_counter.go
- signup_counter.go
- voice_call_counter.go
Click to show internal directories.
Click to hide internal directories.