Documentation ¶
Index ¶
- Constants
- Variables
- type Interface
- type Prom
- func (s *Prom) Add(name string, opts ...interface{}) error
- func (s *Prom) Dec(name string, opts ...interface{}) error
- func (s *Prom) Inc(name string, opts ...interface{}) error
- func (s *Prom) Register(kind int, name, help string, opts ...string) error
- func (s *Prom) Set(name string, opts ...interface{}) error
- func (s *Prom) Start() error
Constants ¶
View Source
const ( // Gauge ... Gauge // GaugeVec ... GaugeVec // Counter ... Counter // CounterVec ... CounterVec )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Register(kind int, name, help string, opts ...string) error Add(name string, opts ...interface{}) error Set(name string, opts ...interface{}) error Inc(name string, opts ...interface{}) error Dec(name string, opts ...interface{}) error }
Interface ...
type Prom ¶
type Prom struct {
// contains filtered or unexported fields
}
Prom ...
func (*Prom) Add ¶
Add ... Gauge, Counter: opts[0] = float64 GaugeVec, CounterVec: []opts = float64 and strings
Click to show internal directories.
Click to hide internal directories.