Documentation
¶
Index ¶
- func AcknowledgedMessage(msg creator.Message, topic string)
- func Address(host string, port int) string
- func Close() error
- func ConsumerCount(topic string)
- func ConsumerLatency(dur time.Duration, topic string)
- func Count(name string, value int64, tags []string)
- func Gauge(name string, value float64, tags []string)
- func Incr(metric string, tags []string)
- func ProduceLatency(dur time.Duration, topic string)
- func ProducerChannelLength(count int, topic string)
- func ProducerCount(topic string)
- func ReportTime(startTime time.Time, tags []string, metricName string, rate float64)
- func ReporterType() string
- func SentMessage(msg creator.Message, topic string)
- func SetReporter(reporter StatsdReporter)
- func Setup(cfg config.Prometheus)
- func SetupStatsD(cfg config.Statsd)
- type NopReporter
- func (m *NopReporter) Close() error
- func (m *NopReporter) Count(name string, value int64, tags []string, rate float64) error
- func (m *NopReporter) Gauge(name string, value float64, tags []string, rate float64) error
- func (m *NopReporter) Incr(name string, tags []string, rate float64) error
- func (m *NopReporter) Timing(name string, value time.Duration, tags []string, rate float64) error
- type StatsdConfig
- type StatsdReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcknowledgedMessage ¶
func ConsumerCount ¶ added in v1.1.0
func ConsumerCount(topic string)
func ConsumerLatency ¶
func ProduceLatency ¶
func ProducerChannelLength ¶ added in v1.1.0
func ProducerCount ¶ added in v1.1.0
func ProducerCount(topic string)
func ReportTime ¶ added in v1.1.1
func ReporterType ¶ added in v1.1.1
func ReporterType() string
func SentMessage ¶
func SetReporter ¶ added in v1.1.1
func SetReporter(reporter StatsdReporter)
func Setup ¶
func Setup(cfg config.Prometheus)
func SetupStatsD ¶ added in v1.1.1
Types ¶
type NopReporter ¶ added in v1.1.1
type NopReporter struct{}
func (*NopReporter) Close ¶ added in v1.1.1
func (m *NopReporter) Close() error
type StatsdConfig ¶ added in v1.1.1
type StatsdReporter ¶ added in v1.1.1
type StatsdReporter interface { Timing(name string, value time.Duration, tags []string, rate float64) error Incr(name string, tags []string, rate float64) error Count(name string, value int64, tags []string, rate float64) error Gauge(name string, value float64, tags []string, rate float64) error Close() error }
Click to show internal directories.
Click to hide internal directories.