Documentation ¶
Overview ¶
Singleton so that it's easier to use in other packages
Index ¶
- Constants
- Variables
- func Decr(name string, value int)
- func DecrPromGauge(key string)
- func Incr(name string, value int)
- func IncrPromCounter(key string, amount int)
- func IncrPromGauge(key string)
- func InitPrometheusMetrics()
- func Mute(name string)
- func SetPromGauge(key string, amount int)
- func Start(reportIntervalSeconds int32)
Constants ¶
View Source
const ( PlumberRelayRate = "plumber_relay_rate" PlumberRelayErrors = "plumber_relay_errors" PlumberRelayTotalEvents = "plumber_relay_total_events" PlumberReadErrors = "plumber_read_errors" PlumberGRPCErrors = "plumber_grpc_errors" PlumberRelayWorkers = "plumber_relay_workers" PlumberTunnels = "plumber_tunnels" )
Variables ¶
View Source
var (
ReportInterval = 10 * time.Second
)
Functions ¶
func DecrPromGauge ¶ added in v1.2.1
func DecrPromGauge(key string)
DecrPromGauge decrements a prometheus gauge by 1
func IncrPromCounter ¶
IncrPromCounter increments a prometheus counter by the given amount
func IncrPromGauge ¶ added in v1.2.1
func IncrPromGauge(key string)
IncrPromGauge decrements a prometheus gauge by 1
func InitPrometheusMetrics ¶
func InitPrometheusMetrics()
InitPrometheusMetrics sets up prometheus counters/gauges
func SetPromGauge ¶
SetPromGauge sets a prometheus gauge value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.