prometheus

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 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"`
}

Config options

type Emitter

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

Emitter for elasticsearch

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