graphite

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 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) Run added in v5.2.0

func (e *Exporter) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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