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
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge represents gauge metrics
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 ¶
LAPICounter is lua binding for counter function on the graphite instance
func (*Graphite) LAPIGauge ¶
LAPIGauge is the lua biding for gauge function call on the graphite instance
Click to show internal directories.
Click to hide internal directories.