Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultStatsPort = 7418
Variables ¶
View Source
var DefaultStatsHandler = &prometheus.Handler{}
Functions ¶
func NewMetricsServer ¶
func NewMetricsServer(h *prometheus.Handler, port int, eng *stats.Engine) *metrics.Server
Types ¶
type Metrics ¶
type Metrics struct {
Config *MetricsConfig
StatsHandler *prometheus.Handler
MetricsSvr *metrics.Server
MetricsEngine *stats.Engine
}
func NewDefaultMetrics ¶
func NewDefaultMetrics() *Metrics
func NewMetrics ¶
type MetricsConfig ¶
Click to show internal directories.
Click to hide internal directories.