MCPcopy Index your code

hub / github.com/hashicorp/go-metrics / functions

Functions345 in github.com/hashicorp/go-metrics

↓ 77 callersMethodgetKeys
()
sink_test.go:23
↓ 26 callersFunctionmockMetric
()
metrics_test.go:13
↓ 23 callersMethodString
()
inmem.go:129
↓ 21 callersMethodSetGauge
A Gauge should retain the last value it is set to
sink.go:15
↓ 15 callersFunctioninsert
Creates a new slice with the provided string value as the first element and the provided slice values as the remaining values. Ordering of the values
metrics.go:318
↓ 11 callersMethodSetGaugeWithLabels
(key []string, val float32, labels []Label)
sink.go:16
↓ 10 callersFunctionflattenKey
(parts []string, labels []metrics.Label)
prometheus/prometheus.go:284
↓ 10 callersMethodpushMetric
Does a non-blocking push to the metrics queue
statsd.go:120
↓ 10 callersMethodpushMetric
Does a non-blocking push to the metrics queue
statsite.go:120
↓ 9 callersMethodIncrCounter
Counters should accumulate values
sink.go:22
↓ 9 callersMethodIncrCounterWithLabels
(key []string, val float32, labels []Label)
sink.go:23
↓ 9 callersFunctionNewInmemSink
NewInmemSink is used to construct a new in-memory sink. Uses an aggregation interval and maximum retention period.
inmem.go:160
↓ 8 callersMethodAddSampleWithLabels
(key []string, val float32, labels []Label)
sink.go:27
↓ 8 callersFunctionHasElem
(s any, elem any)
metrics_test.go:424
↓ 8 callersMethodIncrCounterWithLabels
(key []string, val float32, labels []Label)
inmem.go:212
↓ 8 callersFunctionNewPrometheusSinkFrom
NewPrometheusSinkFrom creates a new PrometheusSink using the passed options.
prometheus/prometheus.go:116
↓ 8 callersMethodSetGauge
(key []string, val float32)
metrics.go:19
↓ 8 callersMethodgetInterval
getInterval returns the current interval. A new interval is created if no previous interval exists, or if the current time is beyond the window for th
inmem.go:281
↓ 7 callersMethodAddSample
Samples are for timing information, where quantiles are used
sink.go:26
↓ 7 callersMethodAddSampleWithLabels
(key []string, val float32, labels []Label)
inmem.go:235
↓ 7 callersMethodData
Data is used to retrieve all the aggregated metrics The metric for the current interval is a snapshot Intervals may be in use, and a read lock should
inmem.go:257
↓ 7 callersMethodEmitKey
Should emit a Key/Value pair for each call
sink.go:19
↓ 7 callersMethodFlush
Flush manually triggers metric submission to Circonus
circonus/circonus.go:58
↓ 7 callersFunctionNewCirconusSink
NewCirconusSink - create new metric sink for circonus one of the following must be supplied: - API Token - search for an existing check or create a n
circonus/circonus.go:36
↓ 7 callersMethodSetPrecisionGauge
(key []string, val float64)
sink.go:32
↓ 7 callersMethodflattenKey
Flattens the key for formatting, removes spaces
statsd.go:97
↓ 7 callersMethodflattenKey
Flattens the key for formatting, removes spaces
statsite.go:97
↓ 6 callersMethodAddSample
(key []string, val float32)
inmem.go:231
↓ 6 callersMethodIncrCounter
(key []string, val float32)
inmem.go:208
↓ 6 callersMethodMeasureSince
(key []string, start time.Time)
metrics.go:146
↓ 6 callersMethodSetGauge
(key []string, val float32)
inmem.go:172
↓ 6 callersMethodStop
Stop is used to stop the InmemSignal from listening
inmem_signal.go:52
↓ 6 callersMethodUpdateFilterAndLabels
UpdateFilterAndLabels overwrites the existing filter with the given rules.
metrics.go:180
↓ 6 callersMethodallowMetric
Returns whether the metric should be allowed based on configured prefix filters Also return the applicable labels
metrics.go:254
↓ 6 callersMethodflattenKey
Flattens key to Circonus metric name
circonus/circonus.go:125
↓ 6 callersFunctionprometheusLabels
(labels []metrics.Label)
prometheus/prometheus.go:297
↓ 5 callersFunctionDefaultConfig
DefaultConfig provides a sane default configuration
start.go:60
↓ 5 callersMethodDisplayMetrics
DisplayMetrics returns a summary of the metrics from the most recent finished interval.
inmem_endpoint.go:69
↓ 5 callersMethodMeasureSinceWithLabels
(key []string, start time.Time, labels []Label)
metrics.go:150
↓ 5 callersFunctionNew
New is used to create a new instance of Metrics
start.go:79
↓ 5 callersMethodSetGaugeWithLabels
(key []string, val float32, labels []Label)
inmem.go:176
↓ 5 callersMethodShutdown
Shutdown the metric sink, flush metrics to storage, and cleanup resources. Called immediately prior to application exit. Implementations must block un
sink.go:42
↓ 5 callersMethodWrite
(p []byte)
inmem_signal_test.go:76
↓ 5 callersFunctionassertServerMatchesExpected
(t *testing.T, server *net.UDPConn, buf []byte, expected string)
datadog/dogstatsd_test.go:158
↓ 5 callersMethodgetFlatkeyAndCombinedLabels
(key []string, labels []metrics.Label)
datadog/dogstatsd.go:146
↓ 5 callersFunctionmockNewDogStatsdSink
nolint:unparam
datadog/dogstatsd_test.go:67
↓ 4 callersMethodEmitKey
(key []string, val float32)
inmem.go:198
↓ 4 callersFunctionMockGetHostname
()
prometheus/prometheus_test.go:298
↓ 4 callersMethodSetPrecisionGaugeWithLabels
(key []string, val float64, labels []Label)
sink.go:33
↓ 4 callersMethodStddev
Computes a Stddev of the values
inmem.go:97
↓ 4 callersFunctionfakeBroker
(q chan string)
circonus/circonus_test.go:59
↓ 4 callersMethodflattenKeyLabels
Flattens the key along with labels for formatting, removes spaces
statsd.go:112
↓ 4 callersMethodflattenKeyLabels
Flattens the key along with labels for formatting, removes spaces
statsite.go:112
↓ 4 callersMethodflattenKeyLabels
Flattens the key for formatting along with its labels, removes spaces
inmem.go:330
↓ 4 callersMethodflattenKeyLabels
Flattens the key along with labels for formatting, removes spaces
circonus/circonus.go:138
↓ 4 callersMethodflattenLabels
Flattens the key for formatting along with its labels, removes spaces
inmem_signal.go:114
↓ 3 callersMethodMean
Computes a mean of the values
inmem.go:107
↓ 3 callersFunctionMockGetHostname
()
datadog/dogstatsd_test.go:23
↓ 3 callersFunctionNewPrometheusPushSink
NewPrometheusPushSink creates a PrometheusPushSink by taking an address, interval, and destination name.
prometheus/prometheus.go:455
↓ 3 callersMethodUpdateFilter
UpdateFilter overwrites the existing filter with the given rules.
metrics.go:175
↓ 3 callersMethodcollectAtTime
collectAtTime allows internal testing of the expiry based logic here without mocking clocks or making tests timing sensitive. fn is the collection cal
prometheus/prometheus.go:164
↓ 3 callersMethodfilterLabels
filterLabels return only allowed labels the caller should lock m.filterLock while calling this method
metrics.go:239
↓ 2 callersMethodAddSampleWithLabels
(key []string, val float32, labels []Label)
sink.go:104
↓ 2 callersMethodEmitRuntimeStats
Emits various runtime statsitics
metrics.go:279
↓ 2 callersMethodEncode
(any)
inmem_endpoint.go:167
↓ 2 callersMethodIncrCounterWithLabels
(key []string, val float32, labels []Label)
sink.go:94
↓ 2 callersMethodIngest
Ingest is used to update a sample
inmem.go:115
↓ 2 callersFunctionNewDogStatsdSink
NewDogStatsdSink is used to create a new DogStatsdSink with sane defaults
datadog/dogstatsd.go:23
↓ 2 callersFunctionNewInmemSignal
NewInmemSignal creates a new InmemSignal which listens for a given signal, and dumps the current metrics out to a writer
inmem_signal.go:32
↓ 2 callersFunctionNewPrometheusSink
NewPrometheusSink creates a new PrometheusSink using the default options.
prometheus/prometheus.go:111
↓ 2 callersFunctionNewStatsdSink
NewStatsdSink is used to create a new StatsdSink
statsd.go:37
↓ 2 callersFunctionNewStatsiteSink
NewStatsiteSink is used to create a new StatsiteSink
statsite.go:37
↓ 2 callersMethodSetGaugeWithLabels
(key []string, val float32, labels []Label)
sink.go:65
↓ 2 callersMethodSetGaugeWithLabels
(key []string, val float32, labels []Label)
metrics.go:23
↓ 2 callersMethodSetPrecisionGaugeWithLabels
(parts []string, val float64, labels []metrics.Label)
prometheus/prometheus.go:317
↓ 2 callersFunctionduration
(t *testing.T, s string)
inmem_test.go:180
↓ 2 callersFunctionfakeServer
(q chan string)
prometheus/prometheus_test.go:302
↓ 2 callersMethodflattenKey
Flattens the key for formatting, removes spaces
inmem.go:319
↓ 2 callersMethodflattenKey
(parts []string)
datadog/dogstatsd.go:50
↓ 2 callersFunctionformatSamples
(source map[string]SampledValue)
inmem_endpoint.go:142
↓ 2 callersFunctionnewMetricSummaryFromInterval
(interval *IntervalMetrics)
inmem_endpoint.go:88
↓ 2 callersMethodparseKey
(key []string)
datadog/dogstatsd.go:66
↓ 2 callersFunctionsetupTestServerAndBuffer
(t *testing.T)
datadog/dogstatsd_test.go:78
↓ 1 callersMethodAddSample
(key []string, val float32)
statsd.go:86
↓ 1 callersMethodAddSample
(key []string, val float32)
sink.go:100
↓ 1 callersMethodAddSample
(key []string, val float32)
statsite.go:86
↓ 1 callersMethodAddSample
(key []string, val float32)
metrics.go:121
↓ 1 callersMethodAddSample
AddSample adds a sample to a histogram metric
circonus/circonus.go:104
↓ 1 callersMethodAddSampleWithLabels
(key []string, val float32, labels []Label)
statsd.go:91
↓ 1 callersMethodAddSampleWithLabels
(key []string, val float32, labels []Label)
statsite.go:91
↓ 1 callersMethodAddSampleWithLabels
(key []string, val float32, labels []Label)
metrics.go:125
↓ 1 callersMethodAddSampleWithLabels
(key []string, val float32, labels []Label)
sink_test.go:74
↓ 1 callersMethodAddSampleWithLabels
(parts []string, val float32, labels []metrics.Label)
prometheus/prometheus.go:359
↓ 1 callersMethodAddSampleWithLabels
(key []string, val float32, labels []metrics.Label)
datadog/dogstatsd.go:135
↓ 1 callersMethodCollect
Collect meets the collection interface and allows us to enforce our expiration logic to clean up ephemeral metrics if their value haven't been set for
prometheus/prometheus.go:157
↓ 1 callersMethodEmitKey
(key []string, val float32)
statsd.go:71
↓ 1 callersMethodEmitKey
(key []string, val float32)
sink.go:84
↓ 1 callersMethodEmitKey
(key []string, val float32)
statsite.go:71
↓ 1 callersMethodEnableHostNamePropagation
EnableHostnamePropagation forces a Dogstatsd `host` tag with the value specified by `s.HostName` Since the go-metrics package has its own mechanism fo
datadog/dogstatsd.go:46
↓ 1 callersMethodIncrCounter
(key []string, val float32)
statsd.go:76
next →1–100 of 345, ranked by callers