# Packages
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
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
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
CheckFatal prints an error and exits with error code 1 if err is non-nil.
CompressionTypeFor a given version of the Prometheus remote storage protocol.
Event is the log-like API for event sampling.
GetFirstAddressOf returns the first IPv4 address of the supplied interface names.
HashFP simply moves entropy from the most significant 48 bits of the fingerprint into the least significant 16 bits (by XORing) so that a simple MOD on the result can be used to pick a mutex while still making use of changes in more significant bits of the fingerprint.
InitEvents initializes event sampling, with the given frequency.
InitLogger initialises the global gokit logger (util.Logger) and overrides the default logger for the server.
LabelsToMetric converts a Labels to Metric Don't do this on any performance sensitive paths.
Max64 returns the maximum of two int64s.
MergeNSampleSets merges and dedupes n sets of already sorted sample pairs.
MergeSampleSets merges and dedupes two sets of already sorted sample pairs.
Min returns the minimum of two ints.
Min64 returns the minimum of two int64s.
NewBackoff creates a Backoff object.
Creates new histogram data collector.
NewMetricFamilyMap sorts output from Gatherer.Gather method into a map.
NewPriorityQueue makes a new priority queue.
NewPrometheusLogger creates a new instance of PrometheusLogger which exposes Prometheus counters for various log levels.
NewSampleStreamIterator creates a SampleStreamIterator.
ParseProtoReader parses a compressed proto from an io.Reader.
SerializeProtoResponse serializes a protobuf response into an HTTP response.
SplitFiltersAndMatchers splits empty matchers off, which are treated as filters, see #220.
No description provided by the author
WaitGroup calls Wait() on a sync.WaitGroup and return once the Wait() completed or the context is cancelled or times out, whatever occurs first.
WithContext returns a Logger that has information about the current user in its details.
WithTraceID returns a Logger that has information about the traceID in its details.
WithUserID returns a Logger that has information about the current user in its details.
WriteJSONResponse writes some JSON as a HTTP response.
# Constants
Values for CompressionType.
Values for CompressionType.
Values for CompressionType.
# Variables
Logger is a shared go-kit logger.
# Structs
Backoff implements exponential backoff with randomized wait times.
BackoffConfig configures a Backoff.
HistogramData keeps data required to build histogram Metric.
HistogramDataCollector combines histogram data, with prometheus descriptor.
PriorityQueue is a priority queue.
PrometheusLogger exposes Prometheus counters for each of go-kit's log levels.
SampleStreamIterator is a struct and not just a renamed type because otherwise the Metric field and Metric() methods would clash.
SummaryData keeps all data needed to create summary metric.
# Interfaces
Op is an operation on the priority queue.
# Type aliases
CompressionType for encoding and decoding requests and responses.
MetricFamiliesPerUser is a collection of metrics gathered via calling Gatherer.Gather() method on different gatherers, one per user.
MetricFamilyMap is a map of metric names to their family (metrics with same name, but different labels) Keeping map of metric name to its family makes it easier to do searches later.