graphite

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreparePathComponent

func PreparePathComponent(s string) string

PreparePathComponent cleans string to be used as Graphite metric path.

Types

type Config

type Config struct {
	Address  string
	Gatherer prometheus.Gatherer
	Interval time.Duration
	Prefix   string
	Tags     bool
}

Config for Graphite Exporter.

type Exporter

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

Exporter to Graphite.

func New

func New(c Config) *Exporter

New creates new Graphite Exporter.

func (*Exporter) Close

func (e *Exporter) Close() error

Close stops exporter.

Jump to

Keyboard shortcuts

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