servicers

package
v0.0.0-...-89602ce Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDirectoryIndexer

func NewDirectoryIndexer() protos.IndexerServer

NewDirectoryIndexer returns the state indexer for directoryd.

The directoryd indexer performs the following indexing functions:

  • sidToIMSI: map session ID to IMSI

sidToIMSI

Directoryd records are reported as {IMSI -> {records...}}. The sidToIMSI function is an online generation of the derived reverse map, producing {session ID -> IMSI}. NOTE: the indexer provides a best-effort generation of the session ID -> IMSI mapping, meaning

  • a {session ID -> IMSI} mapping may be missing even though the IMSI has a session ID record
  • a {session ID -> IMSI} mapping may be stale

func NewOrchestratorStreamProviderServicer

func NewOrchestratorStreamProviderServicer() streamer_protos.StreamProviderServer

func NewPushExporterServicer

func NewPushExporterServicer(pushAddrs []string) protos.MetricsExporterServer

NewPushExporterServicer returns an exporter pushing metrics to Prometheus pushgateways at the passed addresses.

Types

type PushExporterServicer

type PushExporterServicer struct {
	FamiliesByName map[string]*io_prometheus_client.MetricFamily
	ExportInterval time.Duration
	PushAddresses  []string
	sync.Mutex
}

func (*PushExporterServicer) Submit

Jump to

Keyboard shortcuts

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