Documentation ¶
Index ¶
- Constants
- func GetDocumentation() string
- type MetricDefinition
- type Metrics
- func (o *Metrics) CreateInQueueSizeGauge(stage string, f func() int)
- func (o *Metrics) CreateOutQueueSizeGauge(stage string, f func() int)
- func (o *Metrics) CreateRecordsWrittenCounter(stage string) prometheus.Counter
- func (o *Metrics) GetOrCreateStageDurationHisto() *prometheus.HistogramVec
- func (o *Metrics) NewCounter(def *MetricDefinition, labels ...string) prometheus.Counter
- func (o *Metrics) NewCounterVec(def *MetricDefinition) *prometheus.CounterVec
- func (o *Metrics) NewGauge(def *MetricDefinition, labels ...string) prometheus.Gauge
- func (o *Metrics) NewGaugeFunc(def *MetricDefinition, f func() float64, labels ...string)
- func (o *Metrics) NewGaugeVec(def *MetricDefinition) *prometheus.GaugeVec
- func (o *Metrics) NewHistogram(def *MetricDefinition, buckets []float64, labels ...string) prometheus.Histogram
- func (o *Metrics) NewHistogramVec(def *MetricDefinition, buckets []float64) *prometheus.HistogramVec
- func (o *Metrics) NewSummary(def *MetricDefinition, labels ...string) prometheus.Summary
- type Server
- type Timer
Constants ¶
View Source
const TypeCounter metricType = "counter"
View Source
const TypeGauge metricType = "gauge"
View Source
const TypeHistogram metricType = "histogram"
View Source
const TypeSummary metricType = "summary"
Variables ¶
This section is empty.
Functions ¶
func GetDocumentation ¶
func GetDocumentation() string
Types ¶
type MetricDefinition ¶
func DefineMetric ¶
func DefineMetric(name, help string, t metricType, labels ...string) MetricDefinition
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics(settings *config.MetricsSettings) *Metrics
func (*Metrics) CreateInQueueSizeGauge ¶
func (*Metrics) CreateOutQueueSizeGauge ¶
func (*Metrics) CreateRecordsWrittenCounter ¶
func (o *Metrics) CreateRecordsWrittenCounter(stage string) prometheus.Counter
func (*Metrics) GetOrCreateStageDurationHisto ¶
func (o *Metrics) GetOrCreateStageDurationHisto() *prometheus.HistogramVec
func (*Metrics) NewCounter ¶
func (o *Metrics) NewCounter(def *MetricDefinition, labels ...string) prometheus.Counter
func (*Metrics) NewCounterVec ¶
func (o *Metrics) NewCounterVec(def *MetricDefinition) *prometheus.CounterVec
func (*Metrics) NewGauge ¶
func (o *Metrics) NewGauge(def *MetricDefinition, labels ...string) prometheus.Gauge
func (*Metrics) NewGaugeFunc ¶
func (o *Metrics) NewGaugeFunc(def *MetricDefinition, f func() float64, labels ...string)
func (*Metrics) NewGaugeVec ¶ added in v0.1.8
func (o *Metrics) NewGaugeVec(def *MetricDefinition) *prometheus.GaugeVec
func (*Metrics) NewHistogram ¶
func (o *Metrics) NewHistogram(def *MetricDefinition, buckets []float64, labels ...string) prometheus.Histogram
func (*Metrics) NewHistogramVec ¶
func (o *Metrics) NewHistogramVec(def *MetricDefinition, buckets []float64) *prometheus.HistogramVec
func (*Metrics) NewSummary ¶
func (o *Metrics) NewSummary(def *MetricDefinition, labels ...string) prometheus.Summary
type Server ¶
type Server struct { Address string // contains filtered or unexported fields }
func NewHealthServer ¶
func NewHealthServer(opts *config.Options, isAlive healthcheck.Check, isReady healthcheck.Check) *Server
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
func NewTimer ¶
func NewTimer(o prometheus.Observer) *Timer
func (*Timer) ObserveMilliseconds ¶
func (t *Timer) ObserveMilliseconds()
func (*Timer) ObserveSeconds ¶
func (t *Timer) ObserveSeconds()
Click to show internal directories.
Click to hide internal directories.