Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GateMetrics ¶
type GateMetrics struct {
// contains filtered or unexported fields
}
func NewGateMetrics ¶
func NewGateMetrics(p *pool.Pool, statistic *stat.PoolStat) *GateMetrics
NewGateMetrics creates new metrics for http gate.
func (*GateMetrics) Collect ¶ added in v0.24.0
func (m *GateMetrics) Collect(ch chan<- prometheus.Metric)
func (*GateMetrics) Describe ¶ added in v0.24.0
func (m *GateMetrics) Describe(descs chan<- *prometheus.Desc)
func (*GateMetrics) SetGWVersion ¶ added in v0.27.0
func (g *GateMetrics) SetGWVersion(ver string)
func (*GateMetrics) Unregister ¶ added in v0.25.0
func (g *GateMetrics) Unregister()
type Service ¶
Service serves metrics.
func NewPprofService ¶
NewPprofService creates a new service for gathering pprof metrics.
func NewPrometheusService ¶
NewPrometheusService creates a new service for gathering prometheus metrics.
Click to show internal directories.
Click to hide internal directories.