Some checks are pending
Cadoles/bouncer/pipeline/pr-master Build started...
30 lines
709 B
Go
30 lines
709 B
Go
package director
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
const (
|
|
metricNamespace = "bouncer_proxy_director"
|
|
metricLabelProxy = "proxy"
|
|
)
|
|
|
|
var metricProxyRequestsTotal = promauto.NewCounterVec(
|
|
prometheus.CounterOpts{
|
|
Name: "proxy_requests_total",
|
|
Help: "Bouncer proxy total requests",
|
|
Namespace: metricNamespace,
|
|
},
|
|
[]string{metricLabelProxy},
|
|
)
|
|
|
|
var metricProxyResponsesDurationSeconds = promauto.NewHistogramVec(
|
|
prometheus.HistogramOpts{
|
|
Name: "proxy_responses_duration_seconds",
|
|
Help: "Bouncer proxy responses duration",
|
|
Namespace: metricNamespace,
|
|
},
|
|
[]string{metricLabelProxy},
|
|
)
|