prometheus

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config           Config
	CounterMetrics   map[string]*prometheus.CounterVec
	HistogramMetrics map[string]*prometheus.HistogramVec
}

func Init

func Init(cfg Config) (*Client, error)

func (*Client) Incr

func (c *Client) Incr(name string, tags []string, rate float64)

func (*Client) Timing

func (c *Client) Timing(name string, value time.Duration, tags []string, rate float64)

type Config

type Config struct {
	Enabled bool
	Port    string
}

Jump to

Keyboard shortcuts

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