package
0.0.10
Repository: https://github.com/kingstonduy/go-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
Default returns the shared global metrics instance.
DefaultConfig provides a sane default configuration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
New is used to create a new instance of Metrics.
NewGlobal is the same as New, but it assigns the metrics object to be used globally as well as returning it.
NewInmemSink is used to construct a new in-memory sink.
NewInmemSinkFromURL creates an InmemSink from a URL.
NewIntervalMetrics creates a new IntervalMetrics for a given interval.
NewMetricSinkFromURL allows a generic URL input to configure any of the supported sinks.
NewStatsdSink is used to create a new StatsdSink.
NewStatsdSinkFromURL creates an StatsdSink from a URL.
NewStatsiteSink is used to create a new StatsiteSink.
NewStatsiteSinkFromURL creates an StatsiteSink from a URL.
Set Default Metrics.
Set gauge key and value with 32 bit precision.
Set gauge key and value with 32 bit precision.
Set gauge key and value with 64 bit precision The Sink needs to implement PrecisionGaugeMetricSink, in case it doesn't, the metric value won't be set and ingored instead.
Set gauge key, value with 64 bit precision, and labels The Sink needs to implement PrecisionGaugeMetricSink, in case it doesn't, the metric value won't be set and ingored instead.
Shutdown disables metric collection, then blocks while attempting to flush metrics to storage.
No description provided by the author
UpdateFilterAndLabels set allow/block prefixes of metrics while allowedLabels and blockedLabels - when not nil - allow filtering of labels in order to block/allow globally labels (especially useful when having large number of values for a given label).

# Structs

AggregateSample is used to hold aggregate metrics about a sample.
BlackholeSink is used to just blackhole messages.
Config is used to configure metrics settings.
No description provided by the author
InmemSink provides a MetricSink that does in-memory aggregation without sending metrics over a network.
IntervalMetrics stores the aggregated metrics for a specific interval.
No description provided by the author
Metrics represents an instance of a metrics sink that can be used to emit.
MetricsSummary holds a roll-up of metrics info for a given interval.
No description provided by the author
No description provided by the author
No description provided by the author
StatsdSink provides a MetricSink that can be used with a statsite or statsd metrics server.
StatsiteSink provides a MetricSink that can be used with a statsite metrics server.

# Interfaces

No description provided by the author
The MetricSink interface is used to transmit metrics information to an external system.
PrecisionGaugeMetricSink interfae is used to support 64 bit precisions for Sinks, if needed.
No description provided by the author

# Type aliases

FanoutSink is used to sink to fanout values to multiple sinks.