prom

package
v0.0.0-...-0b7460b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEngine

func NewEngine(addr string, enablePprof bool) *engine.Engine

func RouteEngine

func RouteEngine(engine *gin.Engine, enablePprof bool)

Types

type Context

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

func (*Context) GetGinContext

func (c *Context) GetGinContext() *gin.Context

func (*Context) ResponseParseParamsFieldFail

func (c *Context) ResponseParseParamsFieldFail(path, uri, body string, field string, value string, err error)

func (*Context) SetGinContext

func (c *Context) SetGinContext(ctx *gin.Context)

type PromeCounterStatMgr

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

func NewCounter

func NewCounter(name string) *PromeCounterStatMgr

func (*PromeCounterStatMgr) InitDefaultLabels

func (c *PromeCounterStatMgr) InitDefaultLabels(defaultLabels map[string]string, labels []string) *PromeCounterStatMgr

func (*PromeCounterStatMgr) InitLabels

func (c *PromeCounterStatMgr) InitLabels(labels []string) *PromeCounterStatMgr

func (*PromeCounterStatMgr) LabelValues

func (c *PromeCounterStatMgr) LabelValues(labels ...string) prometheus.Counter

type PromeGaugeStatMgr

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

func NewGauge

func NewGauge(name string) *PromeGaugeStatMgr

func (*PromeGaugeStatMgr) InitDefaultLabels

func (c *PromeGaugeStatMgr) InitDefaultLabels(defaultLabels map[string]string, labels []string) *PromeGaugeStatMgr

func (*PromeGaugeStatMgr) InitLabels

func (c *PromeGaugeStatMgr) InitLabels(labels []string) *PromeGaugeStatMgr

func (*PromeGaugeStatMgr) LabelValues

func (c *PromeGaugeStatMgr) LabelValues(labels ...string) prometheus.Gauge

type PromeHistogramStatMgr

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

func NewHistogram

func NewHistogram(name string, buckets []float64) *PromeHistogramStatMgr

func (*PromeHistogramStatMgr) InitDefaultLabels

func (c *PromeHistogramStatMgr) InitDefaultLabels(defaultLabels map[string]string, labels []string) *PromeHistogramStatMgr

func (*PromeHistogramStatMgr) InitLabels

func (c *PromeHistogramStatMgr) InitLabels(labels []string) *PromeHistogramStatMgr

func (*PromeHistogramStatMgr) LabelValues

func (c *PromeHistogramStatMgr) LabelValues(labels ...string) prometheus.Observer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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