Documentation
¶
Index ¶
- Variables
- func Actions() actions
- func Events() events
- func Handler() http.Handler
- func InitAll()
- func Mutator() mutator
- func Registry() registry
- func Rules() rules
- func Tags() tags
- type Histogram
- type HistogramVec
- type Metric
- type MetricCounter
- type MetricCounterVec
- type MetricGauge
- type MetricGaugeVec
- type MetricHistogram
- type MetricHistogramVec
- type MetricSummary
- type MetricSummaryVec
- type MetricType
- type PromFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var Metrics = make(map[MetricType]map[string]interface{})
Functions ¶
func Actions ¶ added in v0.1.0
func Actions() actions
Actions returns a new actions. This is the metrics for the actions.
func Events ¶ added in v0.1.0
func Events() events
Events returns a new events. This is the metrics for the events.
func Mutator ¶ added in v0.1.0
func Mutator() mutator
mutator returns a new mutator. This is the metrics for the mutator.
func Registry ¶ added in v0.1.0
func Registry() registry
Registry returns a new registry. This is the metrics for the registry.
Types ¶
type Histogram ¶ added in v0.1.0
type Histogram struct {
prometheus.Histogram
}
func (Histogram) NewTimer ¶ added in v0.1.0
func (h Histogram) NewTimer() *prometheus.Timer
type HistogramVec ¶ added in v0.1.0
type HistogramVec struct {
*prometheus.HistogramVec
}
func (HistogramVec) NewTimer ¶ added in v0.1.0
func (h HistogramVec) NewTimer(labelsValues ...string) *prometheus.Timer
type MetricCounter ¶ added in v0.1.0
type MetricCounter struct { Counter prometheus.Counter // contains filtered or unexported fields }
metricBase is a base struct for all metrics
type MetricCounterVec ¶ added in v0.1.0
type MetricCounterVec struct { CounterVec *prometheus.CounterVec // contains filtered or unexported fields }
metricBase is a base struct for all metrics
type MetricGauge ¶ added in v0.1.0
type MetricGauge struct { Gauge prometheus.Gauge // contains filtered or unexported fields }
metricBase is a base struct for all metrics
type MetricGaugeVec ¶ added in v0.1.0
type MetricGaugeVec struct { GaugeVec *prometheus.GaugeVec // contains filtered or unexported fields }
metricBase is a base struct for all metrics
type MetricHistogram ¶ added in v0.1.0
type MetricHistogram struct { Histogram Histogram // contains filtered or unexported fields }
metricBase is a base struct for all metrics
type MetricHistogramVec ¶ added in v0.1.0
type MetricHistogramVec struct { HistogramVec HistogramVec // contains filtered or unexported fields }
metricBase is a base struct for all metrics
type MetricSummary ¶ added in v0.1.0
type MetricSummary struct { Summary prometheus.Summary // contains filtered or unexported fields }
metricBase is a base struct for all metrics
type MetricSummaryVec ¶ added in v0.1.0
type MetricSummaryVec struct { SummaryVec *prometheus.SummaryVec // contains filtered or unexported fields }
metricBase is a base struct for all metrics
type MetricType ¶ added in v0.1.0
type MetricType string
metricBase is a base struct for all metrics
const ( // MetricTypeCounter is the type of the metric counter MetricTypeCounter MetricType = "counter" // MetricTypeGauge is the type of the metric gauge MetricTypeGauge MetricType = "gauge" // MetricTypeHistogram is the type of the metric histogram MetricTypeHistogram MetricType = "histogram" // MetricTypeSummary is the type of the metric summary MetricTypeSummary MetricType = "summary" )
type PromFactory ¶ added in v0.1.0
type PromFactory interface { prometheus.Registerer prometheus.Gatherer }
var PFactory PromFactory = prometheus.NewRegistry()
Click to show internal directories.
Click to hide internal directories.