prometheus

package
v0.0.0-...-f4dd3ec Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPRequestsTotal      = "http_requests_total"
	HTTPRequestsDuration   = "http_requests_duration"
	HTTPRequestsSizeBytes  = "http_requests_size_bytes"
	HTTPResponsesSizeBytes = "http_responses_size_bytes"

	HelpHTTPRequestTotal       = "Total http requests amount"
	HelpHTTPRequestDuration    = "Duration of http requests"
	HelpHTTPRequestsSizeBytes  = "Tracks the size of HTTP requests"
	HelpHTTPResponsesSizeBytes = "Tracks the size of HTTP responses"
)

HTTP

Variables

This section is empty.

Functions

This section is empty.

Types

type Prometheus

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

func NewPrometheus

func NewPrometheus(collectors ...prometheus.Collector) *Prometheus

func (*Prometheus) AddCollector

func (p *Prometheus) AddCollector(collector prometheus.Collector)

func (*Prometheus) NewCounter

func (p *Prometheus) NewCounter(name, help string, labels []string) *prometheus.CounterVec

func (*Prometheus) NewGauge

func (p *Prometheus) NewGauge(name, help string, labels []string) *prometheus.GaugeVec

func (*Prometheus) NewHistogram

func (p *Prometheus) NewHistogram(name, help string, buckets []float64, labels []string) *prometheus.HistogramVec

func (*Prometheus) NewSummary

func (p *Prometheus) NewSummary(name, help string, labels []string) *prometheus.SummaryVec

func (*Prometheus) Register

func (p *Prometheus) Register() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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