imperial

package module
v0.0.0-...-ff1b721 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 6 Imported by: 0

README

Imperial

GoDoc Build Status Maintainability Test Coverage

Go library for metrics.

Example

TODO

License

Copyright (c) 2018 Eric Fritz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Documentation

Index

Constants

View Source
const (
	UnitCount        = base.UnitCount
	UnitPercent      = base.UnitPercent
	UnitSeconds      = base.UnitSeconds
	UnitMicroseconds = base.UnitMicroseconds
	UnitMilliseconds = base.UnitMilliseconds
	UnitBytes        = base.UnitBytes
	UnitKilobytes    = base.UnitKilobytes
	UnitMegabytes    = base.UnitMegabytes
	UnitGigabytes    = base.UnitGigabytes
	UnitTerabytes    = base.UnitTerabytes
	UnitBits         = base.UnitBits
	UnitKilobits     = base.UnitKilobits
	UnitMegabits     = base.UnitMegabits
	UnitGigabits     = base.UnitGigabits
	UnitTerabits     = base.UnitTerabits
)

Variables

View Source
var (
	NewSimpleReporterShim = base.NewSimpleReporterShim
	WithNamespace         = base.WithNamespace
	WithSubsystem         = base.WithSubsystem
	WithHelp              = base.WithHelp
	WithUnit              = base.WithUnit
	WithAttributes        = base.WithAttributes
	WithExposedAttributes = base.WithExposedAttributes
	WithBuckets           = base.WithBuckets
	WithQuantiles         = base.WithQuantiles
	NilLogger             = base.NilLogger
	NewPrintLogger        = base.NewPrintLogger
	NewNilLogger          = base.NewNilLogger
)
View Source
var (
	WithCloudwatchReportConfigs = cloudwatch.WithReportConfigs
	WithCloudwatchBatchSize     = cloudwatch.WithBatchSize
	WithCloudwatchBufferSize    = cloudwatch.WithBufferSize
	WithCloudwatchTickDuration  = cloudwatch.WithTickDuration
	WithCloudwatchLogger        = cloudwatch.WithLogger
	WithCloudwatchClock         = cloudwatch.WithClock
	WithCloudwatchSession       = cloudwatch.WithSession
	WithCloudwatchAPI           = cloudwatch.WithAPI
)
View Source
var (
	NewPrometheusReporter                    = prometheus.NewReporter
	WithPrometheusReportConfigs              = prometheus.WithReportConfigs
	WithPrometheusHandlerMaxRequestsInFlight = prometheus.WithHandlerMaxRequestsInFlight
	WithPrometheusHandlerTimeout             = prometheus.WithHandlerTimeout
	WithPrometheusLogger                     = prometheus.WithLogger
	WithPrometheusRegistry                   = prometheus.WithRegistry
)
View Source
var (
	NewREDReporter           = red.NewReporter
	DefaultErrorInterpreter  = red.DefaultErrorInterpreter
	HTTPErrorInterpreter     = red.HTTPErrorInterpreter
	GRPCErrorInterpreter     = red.GRPCErrorInterpreter
	NewMultiErrorInterpreter = red.NewMultiErrorInterpreter
	NewHTTPStatusError       = red.NewHTTPStatusError
)
View Source
var (
	WithRiemannReportConfigs     = riemann.WithReportConfigs
	WithRiemannBatchSize         = riemann.WithBatchSize
	WithRiemannQueueSize         = riemann.WithQueueSize
	WithRiemannTickDuration      = riemann.WithTickDuration
	WithRiemannConnectionTimeout = riemann.WithConnectionTimeout
	WithRiemannTTL               = riemann.WithTTL
	WithRiemannLogger            = riemann.WithLogger
	WithRiemannClock             = riemann.WithClock
	WithRiemannDialer            = riemann.WithDialer
)
View Source
var NewMultiReporter = multi.NewReporter

Functions

This section is empty.

Types

type ConfigFunc

type ConfigFunc = base.ConfigFunc

type ErrorInterpreter

type ErrorInterpreter = red.ErrorInterpreter

type HTTPStatusError

type HTTPStatusError = red.HTTPStatusError

type Logger

type Logger = base.Logger

type REDReporter

type REDReporter = red.Reporter

type Reporter

type Reporter = base.Reporter

func NewCloudwatchReporter

func NewCloudwatchReporter(addr string, configs ...cloudwatch.ConfigFunc) Reporter

func NewRiemannReporter

func NewRiemannReporter(addr string, configs ...riemann.ConfigFunc) Reporter

type RiemannDialer

type RiemannDialer = riemann.Dialer

Directories

Path Synopsis
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL