instrumentor

package module
v0.0.0-...-42600ef Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2017 License: BSD-3-Clause Imports: 10 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

maturity build status GoDoc

instrumentor

The instrumentor package implements a service to manage application metrics.

Documentation

Index

Constants

View Source
const (
	// KindMemory is the kind to be used to create a memory instrumentor services.
	KindMemory = "memory"
	// KindPrometheus is the kind to be used to create a collection of prometheus
	// instrumentor services.
	KindPrometheus = "prometheus"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Collection

type Collection struct {

	// Public.
	Consumer  spec.Consumer
	Publisher spec.Publisher
	// contains filtered or unexported fields
}

Collection is the object bundling all services.

func NewCollection

func NewCollection(config CollectionConfig) (*Collection, error)

NewCollection creates a new configured storage Collection.

func (*Collection) Boot

func (c *Collection) Boot()

func (*Collection) Shutdown

func (c *Collection) Shutdown()

type CollectionConfig

type CollectionConfig struct {
	// Settings.
	HTTPEndpoint string
	HTTPHandler  http.Handler
	Kind         string
	Prefixes     []string
}

CollectionConfig represents the configuration used to create a new collection.

func DefaultCollectionConfig

func DefaultCollectionConfig() CollectionConfig

DefaultCollectionConfig provides a default configuration to create a new collection by best effort.

Directories

Path Synopsis
memory
consumer
Package consumer implements github.com/the-anna-project/instrumentor.Consumer and provides instrumentation primitives to manage application metrics.
Package consumer implements github.com/the-anna-project/instrumentor.Consumer and provides instrumentation primitives to manage application metrics.
publisher
Package publisher implements github.com/the-anna-project/instrumentor.Publisher and provides instrumentation primitives to emit application metrics.
Package publisher implements github.com/the-anna-project/instrumentor.Publisher and provides instrumentation primitives to emit application metrics.
prometheus
consumer
Package consumer implements github.com/the-anna-project/instrumentor.Consumer and provides instrumentation primitives to manage application metrics.
Package consumer implements github.com/the-anna-project/instrumentor.Consumer and provides instrumentation primitives to manage application metrics.
publisher
Package publisher implements github.com/the-anna-project/instrumentor.Publisher and provides instrumentation primitives to emit application metrics.
Package publisher implements github.com/the-anna-project/instrumentor.Publisher and provides instrumentation primitives to emit application metrics.

Jump to

Keyboard shortcuts

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