service

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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 Prometheus added in v0.1.1

type Prometheus struct{}

Prometheus struct

func NewPrometheus added in v0.1.1

func NewPrometheus() *Prometheus

NewPrometheus create a new instance of prometheus backend

func (*Prometheus) Counter added in v0.1.1

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

Counter updates or creates a counter

func (*Prometheus) Gauge added in v0.1.1

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

Gauge updates or creates a gauge

func (*Prometheus) Histogram added in v0.1.1

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

Histogram updates or creates a histogram

func (*Prometheus) Send added in v0.1.1

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

Send sends metrics to prometheus

func (*Prometheus) Summary added in v0.1.1

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