graphite

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MeasurementNode               = "node"        // Measurement for per-node statistics
	MeasurementGlobal             = "global"      // Measurement for summarized global statistics
	CounterMeasurementFirmware    = "firmware"    // Measurement for firmware statistics
	CounterMeasurementModel       = "model"       // Measurement for model statistics
	CounterMeasurementAutoupdater = "autoupdater" // Measurement for autoupdater
)

Variables

This section is empty.

Functions

func Connect

func Connect(configuration map[string]interface{}) (database.Connection, error)

func GlobalStatsFields

func GlobalStatsFields(name string, stats *runtime.GlobalStats) []graphigo.Metric

Types

type Config

type Config map[string]interface{}

func (Config) Address

func (c Config) Address() string

func (Config) Prefix

func (c Config) Prefix() string

type Connection

type Connection struct {
	database.Connection
	// contains filtered or unexported fields
}

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) InsertGlobals

func (c *Connection) InsertGlobals(stats *runtime.GlobalStats, time time.Time, site string, domain string)
func (c *Connection) InsertLink(link *runtime.Link, time time.Time)

InsertLink stores per link statistics

func (*Connection) InsertNode

func (c *Connection) InsertNode(node *runtime.Node)

InsertNode implementation of database

func (*Connection) PruneNodes

func (c *Connection) PruneNodes(deleteAfter time.Duration)

PruneNode implementation of database

Jump to

Keyboard shortcuts

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