metrics

package
v0.6.4-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachProfiler

func AttachProfiler(sm *http.ServeMux)

Types

type Metrics

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

func NewMetrics

func NewMetrics() (m *Metrics)

func (*Metrics) Handler

func (m *Metrics) Handler() http.Handler

func (*Metrics) Register

func (m *Metrics) Register(cs prometheus.Collector) error

func (*Metrics) RegisterDB

func (m *Metrics) RegisterDB(db *sql.DB, dbName string) error

func (*Metrics) RegisterExpvar

func (m *Metrics) RegisterExpvar(exports map[string]*prometheus.Desc) error

func (*Metrics) RegisterRedis added in v0.5.0

func (m *Metrics) RegisterRedis(namespace, subsystem string, client redisprometheus.StatGetter) error

Jump to

Keyboard shortcuts

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