William Petit
56609ec316
Some checks reported errors
Cadoles/bouncer/pipeline/head Something is wrong with the build of this commit
32 lines
721 B
Go
32 lines
721 B
Go
package queue
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
const (
|
|
metricNamespace = "bouncer_layer_queue"
|
|
metricLabelProxy = "proxy"
|
|
metricLabelLayer = "layer"
|
|
)
|
|
|
|
var (
|
|
metricQueueSessions = promauto.NewGaugeVec(
|
|
prometheus.GaugeOpts{
|
|
Name: "sessions",
|
|
Help: "Bouncer's queue layer current sessions",
|
|
Namespace: metricNamespace,
|
|
},
|
|
[]string{metricLabelProxy, metricLabelLayer},
|
|
)
|
|
metricQueueCapacity = promauto.NewGaugeVec(
|
|
prometheus.GaugeOpts{
|
|
Name: "capacity",
|
|
Help: "Bouncer's queue layer capacity",
|
|
Namespace: metricNamespace,
|
|
},
|
|
[]string{metricLabelProxy, metricLabelLayer},
|
|
)
|
|
)
|