backend

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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(metric 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