metrics

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActiveInboundSections = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name:      "active_inbound_sections",
			Namespace: "tunnel",
			Help:      "Number of active incoming tunnel sections.",
		},
	)

	ActiveOutGateways = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "active_out_gateways",
			Namespace: "tunnel",
			Help:      "Number of active bind ports for outgoing and incoming traffic.",
		},
		[]string{"paid"},
	)

	ActiveRoutes = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name:      "active_routes",
			Namespace: "tunnel",
			Help:      "Number of active routes",
		},
		[]string{"paid"},
	)

	PacketsCounter = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name:      "packets_counter",
			Namespace: "tunnel",
			Help:      "The number (thousands) of packets processed per second.",
		},
		[]string{"type"},
	)

	PacketsPrepaidCounter = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name:      "packets_paid_counter",
			Namespace: "tunnel",
			Help:      "The number of packets paid, separated by tunnel type.",
		},
		[]string{"type"},
	)
)
View Source
var Registered = false

Functions

func RegisterMetrics

func RegisterMetrics()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL