metrics

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuth added in v1.0.0

func BasicAuth(realm string, users map[string]string) func(http.Handler) http.Handler

BasicAuth middleware for metrics endpoint (matches autobrr implementation)

Types

type MetricsManager added in v1.0.0

type MetricsManager struct {
	// contains filtered or unexported fields
}

func NewMetricsManager added in v1.0.0

func NewMetricsManager(syncManager *qbittorrent.SyncManager, clientPool *qbittorrent.ClientPool, trackerCustomizationStore *models.TrackerCustomizationStore) *MetricsManager

func (*MetricsManager) GetRegistry added in v1.0.0

func (m *MetricsManager) GetRegistry() *prometheus.Registry

type Server added in v1.0.0

type Server struct {
	// contains filtered or unexported fields
}

func NewMetricsServer added in v1.0.0

func NewMetricsServer(manager *MetricsManager, host string, port int, basicAuthUsersConfig string) *Server

func (*Server) ListenAndServe added in v1.0.0

func (s *Server) ListenAndServe() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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