CalculatePercentiles returns a slice of arbitrary percentiles of the slice of int64.
Capture new values for the Go garbage collector statistics exported in debug.GCStats.
Capture new values for the Go garbage collector statistics exported in debug.GCStats.
CollectProcessMetrics periodically collects various metrics about the running process.
Each call the given function for each registered metric.
Get the metric by the given name or nil if none is registered.
GetOrRegister gets an existing metric or creates and registers a new one.
GetOrRegisterCounter returns an existing Counter or constructs and registers a new StandardCounter.
GetOrRegisterCounterFloat64 returns an existing CounterFloat64 or constructs and registers a new StandardCounterFloat64.
GetOrRegisterCounterFloat64Forced returns an existing CounterFloat64 or constructs and registers a new CounterFloat64 no matter the global switch is enabled or not.
GetOrRegisterCounterForced returns an existing Counter or constructs and registers a new Counter no matter the global switch is enabled or not.
GetOrRegisterGauge returns an existing Gauge or constructs and registers a new StandardGauge.
GetOrRegisterGaugeFloat64 returns an existing GaugeFloat64 or constructs and registers a new StandardGaugeFloat64.
GetOrRegisterGaugeInfo returns an existing GaugeInfo or constructs and registers a new StandardGaugeInfo.
GetOrRegisterHistogram returns an existing Histogram or constructs and registers a new StandardHistogram.
GetOrRegisterHistogramLazy returns an existing Histogram or constructs and registers a new StandardHistogram.
GetOrRegisterMeter returns an existing Meter or constructs and registers a new StandardMeter.
GetOrRegisterResettingTimer returns an existing ResettingTimer or constructs and registers a new StandardResettingTimer.
GetOrRegisterTimer returns an existing Timer or constructs and registers a new StandardTimer.
Graphite is a blocking exporter function which reports metrics in r to a graphite server located at addr, flushing them every d duration and prepending metric names with prefix.
GraphiteOnce performs a single submission to Graphite, returning a non-nil error on failed connections.
GraphiteWithConfig is a blocking exporter function just like Graphite, but it takes a GraphiteConfig instead.
No description provided by the author
Output each metric in the given registry periodically using the given logger.
MustRegister register the given metric under the given name.
No description provided by the author
No description provided by the author
No description provided by the author
NewCounter constructs a new StandardCounter.
NewCounterFloat64 constructs a new StandardCounterFloat64.
NewCounterFloat64Forced constructs a new StandardCounterFloat64 and returns it no matter if the global switch is enabled or not.
NewCounterForced constructs a new StandardCounter and returns it no matter if the global switch is enabled or not.
NewCustomTimer constructs a new StandardTimer from a Histogram and a Meter.
NewEWMA constructs a new EWMA with the given alpha.
NewEWMA1 constructs a new EWMA for a one-minute moving average.
NewEWMA15 constructs a new EWMA for a fifteen-minute moving average.
NewEWMA5 constructs a new EWMA for a five-minute moving average.
NewExpDecaySample constructs a new exponentially-decaying sample with the given reservoir size and alpha.
NewGauge constructs a new StandardGauge.
NewGaugeFloat64 constructs a new StandardGaugeFloat64.
NewGaugeInfo constructs a new StandardGaugeInfo.
NewHealthcheck constructs a new Healthcheck which will use the given function to update its status.
NewHistogram constructs a new StandardHistogram from a Sample.
NewInactiveMeter returns a meter but does not start any goroutines.
NewMeter constructs a new StandardMeter and launches a goroutine.
NewOrderedRegistry creates a new ordered registry (for testing).
No description provided by the author
No description provided by the author
NewRegisteredCounter constructs and registers a new StandardCounter.
NewRegisteredCounterFloat64 constructs and registers a new StandardCounterFloat64.
NewRegisteredCounterFloat64Forced constructs and registers a new StandardCounterFloat64 and launches a goroutine no matter the global switch is enabled or not.
NewRegisteredCounterForced constructs and registers a new StandardCounter and launches a goroutine no matter the global switch is enabled or not.
NewRegisteredGauge constructs and registers a new StandardGauge.
NewRegisteredGaugeFloat64 constructs and registers a new StandardGaugeFloat64.
NewRegisteredGaugeInfo constructs and registers a new StandardGaugeInfo.
NewRegisteredHistogram constructs and registers a new StandardHistogram from a Sample.
NewRegisteredMeter constructs and registers a new StandardMeter and launches a goroutine.
NewRegisteredResettingTimer constructs and registers a new StandardResettingTimer.
NewRegisteredTimer constructs and registers a new StandardTimer.
NewRegistry creates a new registry.
NewResettingTimer constructs a new StandardResettingTimer.
NewSlidingTimeWindowArraySample creates new object with given window of time.
NewTimer constructs a new StandardTimer using an exponentially-decaying sample with the same reservoir size and alpha as UNIX load averages.
NewUniformSample constructs a new uniform sample with the given reservoir size.
OpenTSDB is a blocking exporter function which reports metrics in r to a TSDB server located at addr, flushing them every d duration and prepending metric names with prefix.
OpenTSDBWithConfig is a blocking exporter function just like OpenTSDB, but it takes a OpenTSDBConfig instead.
ReadCPUStats retrieves the current CPU stats.
ReadDiskStats retrieves the disk IO stats belonging to the current process.
No description provided by the author
Register the given metric under the given name.
Register metrics for the Go garbage collector statistics exported in debug.GCStats.
ResettingSample converts an ordinary sample into one that resets whenever its snapshot is retrieved.
RunHealthchecks run all registered healthchecks.
No description provided by the author
SamplePercentile returns an arbitrary percentile of the slice of int64.
SampleVariance returns the variance of the slice of int64.
Output each metric in the given registry to syslog periodically using the given syslogger.
Unregister the metric with the given name.
Write sorts writes each metric in the given registry periodically to the given io.Writer.
WriteJSON writes metrics from the given registry periodically to the specified io.Writer as JSON.
WriteJSONOnce writes metrics from the given registry to the specified io.Writer as JSON.
WriteOnce sorts and writes metrics in the given registry to the given io.Writer.