Versions in this module Expand all Collapse all v0 v0.1.1 Sep 18, 2019 v0.1.0 Sep 12, 2019 Changes in this version + const KeyAdaptors + const KeyErrors + const KeyMetricType + const KeyPrefix + const KeyQueue + const KeyQueueSize + const KeyTxCost + const KeyTxsPerSecond + const KeyTxsWait + func Collector(errChannel chan<- error) prometheus.Collector + func Set(key string, value float64, labelValues ...string) + func StartMetrics(errChannel chan<- error) + type CounterMetric struct + func (m *CounterMetric) GetLabelValues() []string + func (m *CounterMetric) GetValue() float64 + func (m *CounterMetric) GetValueType() prometheus.ValueType + func (m *CounterMetric) SetLabelValues(values []string) + func (m *CounterMetric) SetValue(v float64) + func (m *CounterMetric) SetValueType(prometheus.ValueType) + type ExportMetric interface + GetLabelValues func() []string + GetValue func() float64 + GetValueType func() prometheus.ValueType + SetLabelValues func([]string) + SetValue func(float64) + SetValueType func(prometheus.ValueType) + type GaugeMetric struct + func (m *GaugeMetric) GetLabelValues() []string + func (m *GaugeMetric) GetValue() float64 + func (m *GaugeMetric) GetValueType() prometheus.ValueType + func (m *GaugeMetric) SetLabelValues(values []string) + func (m *GaugeMetric) SetValue(v float64) + func (m *GaugeMetric) SetValueType(prometheus.ValueType) + type ImmutableGaugeMetric struct + func (m *ImmutableGaugeMetric) GetLabelValues() []string + func (m *ImmutableGaugeMetric) GetValue() float64 + func (m *ImmutableGaugeMetric) GetValueType() prometheus.ValueType + func (m *ImmutableGaugeMetric) SetLabelValues(values []string) + func (m *ImmutableGaugeMetric) SetValue(v float64) + func (m *ImmutableGaugeMetric) SetValueType(prometheus.ValueType) + type MetricConfig struct + Key string + Type string + type TickerGaugeMetric struct + func (m *TickerGaugeMetric) GetLabelValues() []string + func (m *TickerGaugeMetric) GetValue() float64 + func (m *TickerGaugeMetric) GetValueType() prometheus.ValueType + func (m *TickerGaugeMetric) Init() + func (m *TickerGaugeMetric) SetLabelValues(values []string) + func (m *TickerGaugeMetric) SetValue(v float64) + func (m *TickerGaugeMetric) SetValueType(prometheus.ValueType)