Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Success = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "request_success_ops_total", Help: "Total execution", }, []string{"method"}) InternalError = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "request_error_ops_total", Help: "Total execution", }, []string{"method"}) BadRequestError = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "request_bad_ops_total", Help: "Total execution", }, []string{"method"}) )
Functions ¶
This section is empty.
Types ¶
type PrometheusMetricService ¶
type PrometheusMetricService interface { Success(label string) InternalError(label string) BadRequestError(label string) }
func NewMetricService ¶
func NewMetricService(metricPrefix string, settings *config.Settings) PrometheusMetricService
Click to show internal directories.
Click to hide internal directories.