package
0.4.0
Repository: https://github.com/joelfischerr/scion.git
Documentation: pkg.go.dev

# Packages

Package promtest contains helpers to test metrics structs.

# Functions

ExportElementID exports the element ID as configured in the config file.
NewCounter creates a new prometheus counter that is registered with the default registry.
NewCounterVec creates a new prometheus counter vec that is registered with the default registry.
NewCounterVecWithLabels creates a prometheus counter vec that is registered with the default registry and with a default init values for labels to avoid missing metrics.
NewGauge creates a new prometheus gauge that is registered with the default registry.
NewGaugeVec creates a new prometheus gauge vec that is registered with the default registry.
NewGaugeVecWithLabels creates a new prometheus gauge vec that is registered with the default registry.
NewHistogram creates a new prometheus histogram that is registered with the default registry.
NewHistogramVec creates a new prometheus histogram vec that is registered with the default registry.
NewHistogramVecWithLabels creates a new prometheus histogram vec that is registered with the default registry.
SafeRegister registers c and returns the registered collector.

# Constants

ErrCrypto is used for crypto related errors.
ErrDB is used for db related errors.
ErrInternal is an internal error.
ErrInvalidReq is an invalid request.
ErrNetwork is used for errors when sending something over the network.
ErrNotClassified is an error that is not further classified.
ErrParse failed to parse request.
ErrProcess is an error during processing e.g.
ErrTimeout is a timeout error.
ErrValidate is used for validation related errors.
ErrVerify is used for validation related errors.
LabelDst is the label for the destination.
LabelNeighIA is label for the neighbouring IA.
LabelOperation is the label for the name of an executed operation.
LabelResult is the label for result classifications.
LabelSrc is the label for the source.
LabelStatus for latency status classifications, possible values are prefixed with Status*.
FIXME(roosd): remove when moving messenger to new metrics style.
FIXME(roosd): remove when moving messenger to new metrics style.
FIXME(roosd): remove when moving messenger to new metrics style.
Success is no error.

# Variables

DefaultLatencyBuckets 10ms, 20ms, 40ms, ..
DefaultSizeBuckets 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384.

# Interfaces

Labels allows to safely pass label values into prometheus.