prometheus

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path              string              `json:"path" yaml:"path"`
	Labels            []string            `json:"labels" yaml:"labels"`
	Gauges            bool                `json:"gauges" yaml:"gauges"`
	Summaries         bool                `json:"summaries" yaml:"summaries"`
	SummaryObjectives map[float64]float64 `json:"summary_objectives" yaml:"summary_objectives"`
}

Config options

type Emitter

type Emitter struct {
	// contains filtered or unexported fields
}

Config for prometheus emitter

func New

func New(c Config, router *httprouter.Router) (emitter *Emitter, err error)

New creates a new transaction.Result emitter

func (*Emitter) Close

func (e *Emitter) Close()

Close and flush pending data

func (*Emitter) Emit

func (e *Emitter) Emit(result transaction.Result)

Emit results

Jump to

Keyboard shortcuts

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