Documentation ¶
Index ¶
- func AttachProfiler(sm *http.ServeMux)
- type Metrics
- func (m *Metrics) Handler() http.Handler
- func (m *Metrics) Register(cs prometheus.Collector) error
- func (m *Metrics) RegisterDB(db *sql.DB, dbName string) error
- func (m *Metrics) RegisterExpvar(exports map[string]*prometheus.Desc) error
- func (m *Metrics) RegisterRedis(namespace, subsystem string, client redisprometheus.StatGetter) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachProfiler ¶
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics() (m *Metrics)
func (*Metrics) RegisterExpvar ¶
func (m *Metrics) RegisterExpvar(exports map[string]*prometheus.Desc) error
func (*Metrics) RegisterRedis ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.