Documentation
¶
Index ¶
Constants ¶
View Source
const ( TopicLabel = "topic" ErrorLabel = "error" )
Labels
View Source
const ( MessagesReceived = BasePath + "messages_received_total" MessagesDropped = BasePath + "messages_dropped_total" FlushCount = BasePath + "flushes_total" )
Counters
View Source
const ( ConnectionStatus = BasePath + "connection_status" BufferSize = BasePath + "buffer_messages" LastFlushTime = BasePath + "last_flush_timestamp" )
Gauges
View Source
const BasePath = "batcher_"
Variables ¶
This section is empty.
Functions ¶
func InitMetricsProvider ¶
func InitMetricsProvider()
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
var (
Local Provider
)
func (Provider) Counter ¶
func (p Provider) Counter(name string) *prometheus.CounterVec
Click to show internal directories.
Click to hide internal directories.