metrics

package
v0.5.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: AGPL-3.0 Imports: 6 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

Jump to

Keyboard shortcuts

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