Documentation
¶
Index ¶
- type CounterVector
- type GaugeVector
- type GoPrometheus
- func (gp *GoPrometheus) AddCounterVector(name, desc string, labels []string)
- func (gp *GoPrometheus) AddGaugeVector(name, desc string, labels []string)
- func (gp *GoPrometheus) AddHistogramVector(name, desc string, labels []string)
- func (gp *GoPrometheus) AddSummaryVector(name, desc string, labels []string)
- func (gp *GoPrometheus) Run()
- func (gp *GoPrometheus) UseGin(gin IGinPrometheus)
- func (gp *GoPrometheus) UseHystrix(hystrix IHystrixPrometheus)
- type HistogramVector
- type IGinPrometheus
- type IGoPrometheus
- type IHystrixPrometheus
- type SummaryVector
- type Vectors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterVector ¶
type CounterVector struct {
Vector *p.CounterVec
Labels []string
}
func (*CounterVector) AddMetric ¶
func (v *CounterVector) AddMetric(value float64, labelValues ...string)
type GaugeVector ¶
func (*GaugeVector) AddMetric ¶
func (v *GaugeVector) AddMetric(value float64, labelValues ...string)
type GoPrometheus ¶
type GoPrometheus struct {
Vectors *Vectors
// contains filtered or unexported fields
}
func New ¶
func New() *GoPrometheus
func (*GoPrometheus) AddCounterVector ¶
func (gp *GoPrometheus) AddCounterVector(name, desc string, labels []string)
func (*GoPrometheus) AddGaugeVector ¶
func (gp *GoPrometheus) AddGaugeVector(name, desc string, labels []string)
func (*GoPrometheus) AddHistogramVector ¶
func (gp *GoPrometheus) AddHistogramVector(name, desc string, labels []string)
func (*GoPrometheus) AddSummaryVector ¶
func (gp *GoPrometheus) AddSummaryVector(name, desc string, labels []string)
func (*GoPrometheus) Run ¶
func (gp *GoPrometheus) Run()
func (*GoPrometheus) UseGin ¶
func (gp *GoPrometheus) UseGin(gin IGinPrometheus)
func (*GoPrometheus) UseHystrix ¶
func (gp *GoPrometheus) UseHystrix(hystrix IHystrixPrometheus)
type HistogramVector ¶
type HistogramVector struct {
Vector *p.HistogramVec
Labels []string
}
func (*HistogramVector) AddMetric ¶
func (v *HistogramVector) AddMetric(value float64, labelValues ...string)
type IGinPrometheus ¶
type IGoPrometheus ¶
type IHystrixPrometheus ¶
type IHystrixPrometheus interface {
Middleware(name string) metricCollector.MetricCollector
}
type SummaryVector ¶
type SummaryVector struct {
Vector *p.SummaryVec
Labels []string
}
func (*SummaryVector) AddMetric ¶
func (v *SummaryVector) AddMetric(value float64, labelValues ...string)
type Vectors ¶
type Vectors struct {
SummaryVectors map[string]*SummaryVector
CounterVectors map[string]*CounterVector
GaugeVectors map[string]*GaugeVector
HistogramVectors map[string]*HistogramVector
}
Click to show internal directories.
Click to hide internal directories.