Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionName ¶
type ActionName string
type IMetrics ¶
type IMetrics struct { Counters PromCounterVecActions Gauges PromGaugeVecActions Histograms PromHistogramVecActions }
func (*IMetrics) CounterVec ¶
func (m *IMetrics) CounterVec(name ActionName) (*prometheus.CounterVec, error)
func (*IMetrics) GaugeVec ¶
func (m *IMetrics) GaugeVec(name ActionName) (*prometheus.GaugeVec, error)
func (*IMetrics) HistogramVec ¶
func (m *IMetrics) HistogramVec(name ActionName) (*prometheus.HistogramVec, error)
type Metrics ¶
type Metrics interface { Registry() CounterVec(name ActionName) (*prometheus.CounterVec, error) GaugeVec(name ActionName) (*prometheus.GaugeVec, error) HistogramVec(name ActionName) (*prometheus.HistogramVec, error) }
type PromCounterVecAction ¶
type PromCounterVecAction struct { Name ActionName Counter prometheus.CounterVec }
type PromCounterVecActions ¶
type PromCounterVecActions []PromCounterVecAction
func (PromCounterVecActions) Get ¶
func (proms PromCounterVecActions) Get(name ActionName) *prometheus.CounterVec
type PromGaugeVecAction ¶
type PromGaugeVecAction struct { Name ActionName Gauge prometheus.GaugeVec }
type PromGaugeVecActions ¶
type PromGaugeVecActions []PromGaugeVecAction
func (PromGaugeVecActions) Get ¶
func (proms PromGaugeVecActions) Get(name ActionName) *prometheus.GaugeVec
type PromHistogramVecAction ¶
type PromHistogramVecAction struct { Name ActionName Histogram prometheus.HistogramVec }
type PromHistogramVecActions ¶
type PromHistogramVecActions []PromHistogramVecAction
func (PromHistogramVecActions) Get ¶
func (proms PromHistogramVecActions) Get(name ActionName) *prometheus.HistogramVec
Click to show internal directories.
Click to hide internal directories.