prometheus

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPromMetricRegistry

func NewPromMetricRegistry(reg *prom.Registry, url *common.URL) *promMetricRegistry

Types

type Rt

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

func (*Rt) Observe

func (r *Rt) Observe(val float64)

type RtOpts

type RtOpts struct {
	Namespace   string
	Subsystem   string
	Name        string
	Help        string
	ConstLabels prom.Labels
	// contains filtered or unexported fields
}

type RtVec

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

func NewAggRtVec

func NewAggRtVec(opts *RtOpts, labNames []string) *RtVec

func NewRtVec

func NewRtVec(opts *RtOpts, labNames []string) *RtVec

func (*RtVec) Collect

func (r *RtVec) Collect(ch chan<- prom.Metric)

func (*RtVec) Describe

func (r *RtVec) Describe(ch chan<- *prom.Desc)

func (*RtVec) With

func (r *RtVec) With(tags map[string]string) prom.Observer

Jump to

Keyboard shortcuts

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