graphite

package
v4.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: Apache-2.0 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