monitoring

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricService

type MetricService struct {
	ReporterRequests  *prometheus.CounterVec
	ReporterErrors    *prometheus.CounterVec
	ReporterReceived  prometheus.Counter
	ReporterSent      prometheus.Counter
	ReporterRemovals  prometheus.Counter
	ReporterDurations *prometheus.HistogramVec
	BrowserRequests   prometheus.Counter
	BrowserErrors     prometheus.Counter
	BrowserReceived   prometheus.Counter
	BrowserSent       prometheus.Counter
	BrowserDurations  prometheus.Histogram

	CleanerRemovals prometheus.Counter
	CleanerErrors   prometheus.Counter

	DiscoveryWorkersBusy      prometheus.Gauge
	DiscoveryWorkersAvailable prometheus.Gauge
	DiscoveryQueueProduced    prometheus.Counter
	DiscoveryQueueConsumed    prometheus.Counter
	DiscoveryQueueExpired     prometheus.Counter
	DiscoveryProbes           *prometheus.CounterVec
	DiscoveryProbeSuccess     *prometheus.CounterVec
	DiscoveryProbeRetries     *prometheus.CounterVec
	DiscoveryProbeFailures    *prometheus.CounterVec
	DiscoveryProbeErrors      *prometheus.CounterVec
	DiscoveryProbeDurations   *prometheus.HistogramVec
	DiscoveryQueryDurations   prometheus.Histogram

	ServerRepositorySize   prometheus.Gauge
	InstanceRepositorySize prometheus.Gauge
	ProbeRepositorySize    prometheus.Gauge

	GameDiscoveredServers *prometheus.GaugeVec
	GameActiveServers     *prometheus.GaugeVec
	GamePlayedServers     *prometheus.GaugeVec
	GamePlayers           *prometheus.GaugeVec
	// contains filtered or unexported fields
}

func (*MetricService) GetRegistry

func (ms *MetricService) GetRegistry() *prometheus.Registry

func (*MetricService) Observe

func (ms *MetricService) Observe(
	ctx context.Context,
	config ObserverConfig,
)

type ObserverConfig added in v0.3.0

type ObserverConfig struct {
	ServerLiveness time.Duration
}

Jump to

Keyboard shortcuts

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