mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-06-18 16:56:35 +00:00

## Summary Session is the concept used for UDP flows. Therefore, to make the session limiter ambiguous for both TCP and UDP, this commit renames it to flow limiter. Closes TUN-8861
24 lines
492 B
Go
24 lines
492 B
Go
package flow
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
const (
|
|
namespace = "flow"
|
|
)
|
|
|
|
var (
|
|
labels = []string{"flow_type"}
|
|
|
|
flowRegistrationsDropped = promauto.NewCounterVec(prometheus.CounterOpts{
|
|
Namespace: namespace,
|
|
Subsystem: "client",
|
|
Name: "registrations_rate_limited_total",
|
|
Help: "Count registrations dropped due to high number of concurrent flows being handled",
|
|
},
|
|
labels,
|
|
)
|
|
)
|