graphite

package
v0.0.0-...-38ecb19 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package graphite is responsible for pushing metrics to graphite

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	// contains filtered or unexported fields
}

Counter represents counter metrics

func (*Counter) LAPIDec

func (c *Counter) LAPIDec(state *lua.LState) int

LAPIDec is the lua call back for dec function call

func (*Counter) LAPIInc

func (c *Counter) LAPIInc(state *lua.LState) int

LAPIInc is the lua binding for inc function call

type Gauge

type Gauge struct {
	// contains filtered or unexported fields
}

Gauge represents gauge metrics

func (*Gauge) LAPIUpdate

func (g *Gauge) LAPIUpdate(state *lua.LState) int

LAPIUpdate is lua binding for update function call on the gauge instance

type Graphite

type Graphite struct {
	// contains filtered or unexported fields
}

Graphite represents the graphite module of the application It store the graphite registry configs and provide method for metrics operations

func NewGraphite

func NewGraphite(conf *config.Configuration, state *lua.LState, logger zerolog.Logger) (*Graphite, error)

NewGraphite returns a new graphite instance It starts the thread which published the metrics in regular interval (config.Graphite.Interval)

func (*Graphite) LAPICounter

func (g *Graphite) LAPICounter(state *lua.LState) int

LAPICounter is lua binding for counter function on the graphite instance

func (*Graphite) LAPIGauge

func (g *Graphite) LAPIGauge(state *lua.LState) int

LAPIGauge is the lua biding for gauge function call on the graphite instance

func (*Graphite) LAPIMeter

func (g *Graphite) LAPIMeter(state *lua.LState) int

LAPIMeter is the lua binding for the meter function call on the graphite instance

func (*Graphite) LAPITimer

func (g *Graphite) LAPITimer(state *lua.LState) int

LAPITimer is the lua binding for timer function call on the graphite instance

type Meter

type Meter struct {
	Name string
	// contains filtered or unexported fields
}

Meter represents the meter metrics

func (*Meter) LAPIMark

func (g *Meter) LAPIMark(state *lua.LState) int

LAPIMark is the lua binding for mark function call on the meter instance

type Timer

type Timer struct {
	// contains filtered or unexported fields
}

Timer represents timer metrics

func (*Timer) LAPIUpdate

func (t *Timer) LAPIUpdate(state *lua.LState) int

LAPIUpdate is lua binding for update function call on the timer instance

Jump to

Keyboard shortcuts

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