prom

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Unlicense Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter = prometheus.Counter

func NewPrometheusCounter

func NewPrometheusCounter(name string, help string, labels map[string]string) (Counter, error)

type Gauge

type Gauge = prometheus.Gauge

func NewPrometheusGauge

func NewPrometheusGauge(name string, help string, labels map[string]string) (Gauge, error)

type PrometheusServer

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

func NewPrometheusServer

func NewPrometheusServer(addr string, metricsPath string, appName string) (*PrometheusServer, error)

func (*PrometheusServer) Run

func (p *PrometheusServer) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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