Documentation
¶
Index ¶
- type AdapterGin
- type Config
- type PrometheusWrapper
- func (p *PrometheusWrapper) EventLog(module, event string)
- func (p *PrometheusWrapper) ExceptionLog(module, exception string)
- func (p *PrometheusWrapper) HistogramLatencyLog(module, api, method string, latency float64)
- func (p *PrometheusWrapper) Log(api, method, code string, sendBytes, rcvdBytes, latency float64)
- func (p *PrometheusWrapper) RcvdBytesLog(module, api, method, code string, byte float64)
- func (p *PrometheusWrapper) RegCustomCollector(c prometheus.Collector)
- func (p *PrometheusWrapper) RequestLog(module, api, method, code string)
- func (p *PrometheusWrapper) ResetCounter()
- func (p *PrometheusWrapper) SendBytesLog(module, api, method, code string, byte float64)
- func (p *PrometheusWrapper) SiteEventLog(module, event, site string)
- func (p *PrometheusWrapper) StateLog(module, state string, value float64)
- func (p *PrometheusWrapper) SummaryLatencyLog(module, api, method string, latency float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterGin ¶
type AdapterGin struct {
// contains filtered or unexported fields
}
func NewAdapterGin ¶
func NewAdapterGin(p *PrometheusWrapper) *AdapterGin
func (*AdapterGin) Middleware ¶
func (a *AdapterGin) Middleware(enable bool, reqKey string) gin.HandlerFunc
type PrometheusWrapper ¶
type PrometheusWrapper struct {
// contains filtered or unexported fields
}
func NewPrometheusWrapper ¶
func NewPrometheusWrapper(conf *Config) *PrometheusWrapper
func (*PrometheusWrapper) EventLog ¶
func (p *PrometheusWrapper) EventLog(module, event string)
func (*PrometheusWrapper) ExceptionLog ¶
func (p *PrometheusWrapper) ExceptionLog(module, exception string)
func (*PrometheusWrapper) HistogramLatencyLog ¶
func (p *PrometheusWrapper) HistogramLatencyLog(module, api, method string, latency float64)
func (*PrometheusWrapper) Log ¶
func (p *PrometheusWrapper) Log(api, method, code string, sendBytes, rcvdBytes, latency float64)
func (*PrometheusWrapper) RcvdBytesLog ¶
func (p *PrometheusWrapper) RcvdBytesLog(module, api, method, code string, byte float64)
func (*PrometheusWrapper) RegCustomCollector ¶
func (p *PrometheusWrapper) RegCustomCollector(c prometheus.Collector)
func (*PrometheusWrapper) RequestLog ¶
func (p *PrometheusWrapper) RequestLog(module, api, method, code string)
func (*PrometheusWrapper) ResetCounter ¶
func (p *PrometheusWrapper) ResetCounter()
func (*PrometheusWrapper) SendBytesLog ¶
func (p *PrometheusWrapper) SendBytesLog(module, api, method, code string, byte float64)
func (*PrometheusWrapper) SiteEventLog ¶
func (p *PrometheusWrapper) SiteEventLog(module, event, site string)
func (*PrometheusWrapper) StateLog ¶
func (p *PrometheusWrapper) StateLog(module, state string, value float64)
func (*PrometheusWrapper) SummaryLatencyLog ¶
func (p *PrometheusWrapper) SummaryLatencyLog(module, api, method string, latency float64)
Click to show internal directories.
Click to hide internal directories.