metrics

package
v0.12.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

metrics tracks request behavior inside tenant (which manages Ensign user accounts, projects, and topics) and quarterdeck (which manages authentication and authorization)

Index

Constants

View Source
const (
	NamespaceHTTPMetrics = "http_stats"
	NamespaceUserMetrics = "user_metrics"
)

Prometheus namespaces for the collectors defined in this package.

Variables

View Source
var (
	// Total HTTP requests, disaggregated by service (e.g. "tenant" or "quarterdeck", status code, query path)
	RequestsHandled *prometheus.CounterVec

	// HTTP request duration, disaggregated by service (e.g. "tenant" or "quarterdeck", status code, query path)
	RequestDuration *prometheus.HistogramVec

	// Daily active users, collected via Quarterdeck usage, disaggregated by type (e.g. human or machine)
	Active *prometheus.CounterVec

	// Failed logins, collected via Quarterdeck usage, disaggregated by user type (e.g. human or machine) and cause of failure
	FailedLogins *prometheus.CounterVec

	// Verified users, collected via Quarterdeck usage
	Verified *prometheus.CounterVec

	// Registered users, collected via Quarterdeck usage
	Registered *prometheus.CounterVec

	// Registered organizations, collected via Quarterdeck usage
	Organizations *prometheus.CounterVec

	// Projects, collected via Quarterdeck usage
	Projects *prometheus.CounterVec
)

Functions

func Routes

func Routes(router *gin.Engine)

func Setup

func Setup()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL