Documentation ¶
Index ¶
- func Close()
- func Count(metricName string, count int64, labels map[string]string) error
- func Gauge(metricName string, value interface{}, labels map[string]string) error
- func Histogram(metricName string, value int64, labels map[string]string) error
- func Increment(metricName string, labels map[string]string) error
- func SetVoid()
- func Setup() error
- type CounterVec
- type GaugeVec
- type HistogramVec
- type MetricInstrument
- type MockInstrument
- func (m *MockInstrument) Close()
- func (m *MockInstrument) Count(metricName string, count int64, labels map[string]string) error
- func (m *MockInstrument) Gauge(metricName string, value interface{}, labels map[string]string) error
- func (m *MockInstrument) Histogram(metricName string, value int64, labels map[string]string) error
- func (m *MockInstrument) Increment(metricName string, labels map[string]string) error
- type PrometheusCollector
- func (p *PrometheusCollector) Close()
- func (p *PrometheusCollector) Count(metricName string, count int64, labels map[string]string) error
- func (p *PrometheusCollector) Gauge(metricName string, value interface{}, labels map[string]string) error
- func (p *PrometheusCollector) Histogram(metricName string, value int64, labels map[string]string) error
- func (p *PrometheusCollector) Increment(metricName string, labels map[string]string) error
- func (p *PrometheusCollector) Register() error
- type Statsd
- func (s *Statsd) Close()
- func (s *Statsd) Count(metricName string, count int64, labels map[string]string) error
- func (s *Statsd) Gauge(metricName string, value interface{}, labels map[string]string) error
- func (s *Statsd) Histogram(metricName string, value int64, labels map[string]string) error
- func (s *Statsd) Increment(metricName string, labels map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CounterVec ¶
type CounterVec interface { With(labels prometheus.Labels) prometheus.Counter Collect(chan<- prometheus.Metric) Describe(chan<- *prometheus.Desc) }
type GaugeVec ¶
type GaugeVec interface { With(labels prometheus.Labels) prometheus.Gauge Collect(chan<- prometheus.Metric) Describe(chan<- *prometheus.Desc) }
type HistogramVec ¶
type HistogramVec interface { With(labels prometheus.Labels) prometheus.Observer Collect(chan<- prometheus.Metric) Describe(chan<- *prometheus.Desc) }
type MetricInstrument ¶
type MetricInstrument interface { Increment(metricName string, labels map[string]string) error Count(metricName string, count int64, labels map[string]string) error Gauge(metricName string, value interface{}, labels map[string]string) error Histogram(metricName string, value int64, labels map[string]string) error Close() }
func Instrument ¶
func Instrument() MetricInstrument
Instrument returns the configured MetricInstrument should be called once Setup() is done.
type MockInstrument ¶
func (*MockInstrument) Close ¶
func (m *MockInstrument) Close()
func (*MockInstrument) Gauge ¶
func (m *MockInstrument) Gauge(metricName string, value interface{}, labels map[string]string) error
type PrometheusCollector ¶
type PrometheusCollector struct {
// contains filtered or unexported fields
}
func (*PrometheusCollector) Close ¶
func (p *PrometheusCollector) Close()
func (*PrometheusCollector) Gauge ¶
func (p *PrometheusCollector) Gauge(metricName string, value interface{}, labels map[string]string) error
func (*PrometheusCollector) Increment ¶
func (p *PrometheusCollector) Increment(metricName string, labels map[string]string) error
func (*PrometheusCollector) Register ¶
func (p *PrometheusCollector) Register() error
Click to show internal directories.
Click to hide internal directories.