graphite

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: AGPL-3.0 Imports: 7 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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