Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics interface { IncHits(status int, method, path string) ObserveResponseTime(status int, method, path string, observeTime float64) }
App Metrics interface
type PrometheusMetrics ¶
type PrometheusMetrics struct { HitsTotal prometheus.Counter Hits *prometheus.CounterVec Times *prometheus.HistogramVec }
Prometheus Metrics struct
func (*PrometheusMetrics) IncHits ¶
func (metr *PrometheusMetrics) IncHits(status int, method, path string)
IncHits
func (*PrometheusMetrics) ObserveResponseTime ¶
func (metr *PrometheusMetrics) ObserveResponseTime(status int, method, path string, observeTime float64)
Observer response time
Click to show internal directories.
Click to hide internal directories.