Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartMetricsServer ¶
StartMetricsServer starts server that handles metrics Prometheus: http://localhost:2112/metrics Expvar : http://localhost:2112/debug/vars
Types ¶
type Metrics ¶
type Metrics struct { RequestCounter metrics.Counter ResponseCounter metrics.Counter PanicCounter metrics.Counter RobotsTxtRequestCounter metrics.Counter RobotsTxtResponseCounter metrics.Counter RobotsTxtForbiddenCounter metrics.Counter }
Metrics type stores metrics
func NewMetrics ¶
NewMetrics creates new metrics with given metrics.Type
Click to show internal directories.
Click to hide internal directories.