Documentation ¶
Index ¶
- type Factory
- func (f *Factory) Counter(name, description string, labels []string) *prometheus.CounterVec
- func (f *Factory) Gauge(name, description string, labels []string) *prometheus.GaugeVec
- func (f *Factory) Histogram(name, description string, labels []string) *prometheus.HistogramVec
- func (f *Factory) Summary(name, description string, labels []string) *prometheus.SummaryVec
- type FactoryOptions
- type OpMetrics
- type RequestMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory creates new metrics factory
func NewFactory ¶
func NewFactory(opts FactoryOptions) *Factory
NewFactory creates a new instance of Factory
func (*Factory) Counter ¶
func (f *Factory) Counter(name, description string, labels []string) *prometheus.CounterVec
Counter creates a new counter metrics
func (*Factory) Gauge ¶
func (f *Factory) Gauge(name, description string, labels []string) *prometheus.GaugeVec
Gauge creates a new gauge metrics
func (*Factory) Histogram ¶
func (f *Factory) Histogram(name, description string, labels []string) *prometheus.HistogramVec
Histogram creates a new histogram metrics
func (*Factory) Summary ¶
func (f *Factory) Summary(name, description string, labels []string) *prometheus.SummaryVec
Summary creates a new summary metrics
type FactoryOptions ¶ added in v0.2.6
type FactoryOptions struct { Buckets []float64 Quantiles map[float64]float64 Registerer prometheus.Registerer }
FactoryOptions contains optional options for creating a Factory
type OpMetrics ¶
type OpMetrics struct { OpLatencyHist *prometheus.HistogramVec OpLatencySumm *prometheus.SummaryVec }
OpMetrics includes metrics for internal operations
type RequestMetrics ¶
type RequestMetrics struct { ReqCounter *prometheus.CounterVec ReqGauge *prometheus.GaugeVec ReqDurationHist *prometheus.HistogramVec ReqDurationSumm *prometheus.SummaryVec }
RequestMetrics includes metrics for service requests
Click to show internal directories.
Click to hide internal directories.