Documentation
¶
Index ¶
- Constants
- type Prometheus
- func (p *Prometheus) AddCollector(collector prometheus.Collector)
- func (p *Prometheus) NewCounter(name, help string, labels []string) *prometheus.CounterVec
- func (p *Prometheus) NewGauge(name, help string, labels []string) *prometheus.GaugeVec
- func (p *Prometheus) NewHistogram(name, help string, buckets []float64, labels []string) *prometheus.HistogramVec
- func (p *Prometheus) NewSummary(name, help string, labels []string) *prometheus.SummaryVec
- func (p *Prometheus) Register() (err error)
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)
Click to show internal directories.
Click to hide internal directories.