backend

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct{}

Console struct

func NewConsole

func NewConsole() *Console

NewConsole create a new instance of console backend

func (*Console) Send

func (c *Console) Send(metrics []model.Metric) error

Send sends metrics to console backend

type Graphite

type Graphite struct{}

Graphite struct

func NewGraphite

func NewGraphite() *Graphite

NewGraphite create a new instance of graphite backend

func (*Graphite) Send

func (g *Graphite) Send(metrics []model.Metric) error

Send sends metrics to graphite backend

type Penguin

type Penguin struct{}

Penguin struct

func (*Penguin) Send

func (p *Penguin) Send(metrics []model.Metric) error

type Prometheus

type Prometheus struct{}

Prometheus struct

func NewPrometheus

func NewPrometheus() *Prometheus

NewPrometheus create a new instance of prometheus backend

func (*Prometheus) Counter

func (p *Prometheus) Counter(item model.Metric) error

Counter updates or creates a counter

func (*Prometheus) Gauge

func (p *Prometheus) Gauge(item model.Metric) error

Gauge updates or creates a gauge

func (*Prometheus) Histogram

func (p *Prometheus) Histogram(item model.Metric) error

Histogram updates or creates a histogram

func (*Prometheus) Send

func (p *Prometheus) Send(metrics []model.Metric) error

Send sends metrics to prometheus

func (*Prometheus) Summary

func (p *Prometheus) Summary(item model.Metric) error

Summary updates or creates a summary

Jump to

Keyboard shortcuts

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