memory

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

package memory implement in-mem metrics using prometheus lib.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

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

func New

func New() *Reporter

func (*Reporter) Counter

func (r *Reporter) Counter(name string, labels ...string) metric.Counter

func (*Reporter) Gauge

func (r *Reporter) Gauge(name string, labels ...string) metric.Gauge

func (*Reporter) Histogram

func (r *Reporter) Histogram(name string, buckets []float64, labels ...string) metric.Histogram

func (*Reporter) Named

func (r *Reporter) Named(name string) metric.Reporter

func (*Reporter) ServeHTTP

func (r *Reporter) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Reporter) Summary

func (r *Reporter) Summary(name string, obj map[float64]float64, age time.Duration, labels ...string) metric.Summary

Jump to

Keyboard shortcuts

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