Help us shape the future of Go! Take the 2026 Go Developer Survey

graphite

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2016 License: MIT Imports: 9 Imported by: 0

README

Graphite Output Plugin

This plugin writes to Graphite via raw TCP.

Parameters:

Servers []string
Prefix  string
Timeout int
  • servers: List of strings, ["mygraphiteserver:2003"].
  • prefix: String use to prefix all sent metrics.
  • timeout: Connection timeout in second.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graphite

type Graphite struct {
	// URL is only for backwards compatability
	Servers []string
	Prefix  string
	Timeout int
	// contains filtered or unexported fields
}

func (*Graphite) Close

func (g *Graphite) Close() error

func (*Graphite) Connect

func (g *Graphite) Connect() error

func (*Graphite) Description

func (g *Graphite) Description() string

func (*Graphite) SampleConfig

func (g *Graphite) SampleConfig() string

func (*Graphite) Write

func (g *Graphite) Write(points []*client.Point) error

Choose a random server in the cluster to write to until a successful write occurs, logging each unsuccessful. If all servers fail, return error.

Jump to

Keyboard shortcuts

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