Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DurationRequests = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: metricNamespace, Subsystem: metricSubsystem, Name: "request_duration_seconds", Help: "Duration of request", Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, .75, 1, 1.25, 1.5, 2, 2.5, 5, 10}, }, labels) InternalError = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: metricNamespace, Subsystem: metricSubsystem, Name: "errors_total", Help: "Total number of errors", }, labels) InvalidRequests = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: metricNamespace, Subsystem: metricSubsystem, Name: "requests_invalid_total", Help: "Total number of invalid requests", }, labels) RejectedRequests = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: metricNamespace, Subsystem: metricSubsystem, Name: "requests_rejected_total", Help: "Total number of rejected requests", }, labels) SuccessfulRequests = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: metricNamespace, Subsystem: metricSubsystem, Name: "requests_successful_total", Help: "Total number of successful requests", }, labels) TotalRequests = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: metricNamespace, Subsystem: metricSubsystem, Name: "requests_total", Help: "Total number of requests", }, labels) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.