metrics

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: GPL-2.0 Imports: 12 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) *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

func (*Server) Shutdown added in v1.0.0

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Stop added in v1.0.0

func (s *Server) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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