prometheus

package
v0.0.0-...-32ff608 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EndpointPort string `yaml:"endpoint_port"`
}

func NewDefaultConfig

func NewDefaultConfig() *Config

type Metrics

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

func (*Metrics) AddCount

func (p *Metrics) AddCount(name string, label string, val float64)

func (*Metrics) IncCount

func (p *Metrics) IncCount(name string, label string)

func (*Metrics) Init

func (p *Metrics) Init(config *Config)

Init try to init metrics, include exposing http endpoint

func (*Metrics) RecordLatency

func (p *Metrics) RecordLatency(name string, label string, latency float64)

func (*Metrics) Setup

func (p *Metrics) Setup(name string, dec plugin.Decoder) error

func (*Metrics) Type

func (p *Metrics) Type() string

Jump to

Keyboard shortcuts

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