metrics

package
v0.0.0-...-e4c4ac9 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetValue

func SetValue(w http.ResponseWriter, req *http.Request)

Types

type CounterMetric

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

type GaugeMetric

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

type Generator

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

func NewGenerator

func NewGenerator(file string, r *prometheus.Registry) (*Generator, error)

func (*Generator) SetValue

func (g *Generator) SetValue(mname string, labels map[string]string, v float64) error

func (*Generator) Start

func (g *Generator) Start()

type Metric

type Metric interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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