Versions in this module Expand all Collapse all v0 v0.1.0 Apr 22, 2019 Changes in this version + func NewMetric(m *Metric, subsystem string) prometheus.Collector + type Metric struct + Args []string + Description string + ID string + MetricCollector prometheus.Collector + Name string + Type string + type Prometheus struct + MetricsList []*Metric + MetricsPath string + Ppg PrometheusPushGateway + ReqCntURLLabelMappingFn RequestCounterURLLabelMappingFn + URLLabelFromContext string + func NewPrometheus(subsystem string, customMetricsList ...[]*Metric) *Prometheus + func (p *Prometheus) HandlerFunc() gin.HandlerFunc + func (p *Prometheus) SetListenAddress(address string) + func (p *Prometheus) SetListenAddressWithRouter(listenAddress string, r *gin.Engine) + func (p *Prometheus) SetMetricsPath(e *gin.Engine) + func (p *Prometheus) SetMetricsPathWithAuth(e *gin.Engine, accounts gin.Accounts) + func (p *Prometheus) SetPushGateway(pushGatewayURL, metricsURL string, pushIntervalSeconds time.Duration) + func (p *Prometheus) SetPushGatewayJob(j string) + func (p *Prometheus) Use(e *gin.Engine) + func (p *Prometheus) UseWithAuth(e *gin.Engine, accounts gin.Accounts) + type PrometheusPushGateway struct + Job string + MetricsURL string + PushGatewayURL string + PushIntervalSeconds time.Duration + type RequestCounterURLLabelMappingFn func(c *gin.Context) string