Documentation ¶
Index ¶
- type Prometheus
- func (p *Prometheus) ConsumeSeconds(d time.Duration, service string, name string)
- func (p *Prometheus) DecConnection(name string)
- func (p *Prometheus) DecConsumer(service string, name string)
- func (p *Prometheus) Handle(ctx *fasthttp.RequestCtx)
- func (p *Prometheus) IncConnection(name string)
- func (p *Prometheus) IncConsumeError(service string, name string)
- func (p *Prometheus) IncConsumer(service string, name string)
- func (p *Prometheus) IncError(service string)
- func (p *Prometheus) IncSendError(service string, name string)
- func (p *Prometheus) SendSeconds(d time.Duration, service string, name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
Prometheus .
func (*Prometheus) ConsumeSeconds ¶
func (p *Prometheus) ConsumeSeconds(d time.Duration, service string, name string)
ConsumeSeconds .
func (*Prometheus) DecConsumer ¶
func (p *Prometheus) DecConsumer(service string, name string)
DecConsumer .
func (*Prometheus) Handle ¶
func (p *Prometheus) Handle(ctx *fasthttp.RequestCtx)
Handler the http handler for metrics.
func (*Prometheus) IncConsumeError ¶
func (p *Prometheus) IncConsumeError(service string, name string)
IncConsumeError .
func (*Prometheus) IncConsumer ¶
func (p *Prometheus) IncConsumer(service string, name string)
IncConsumer .
func (*Prometheus) IncSendError ¶
func (p *Prometheus) IncSendError(service string, name string)
IncSendError .
func (*Prometheus) SendSeconds ¶
func (p *Prometheus) SendSeconds(d time.Duration, service string, name string)
SendSeconds .
Click to show internal directories.
Click to hide internal directories.