Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MessagesSent = promauto.NewCounter(prometheus.CounterOpts{ Name: "kafka_messages_sent_total", Help: "The total number of messages sent", }) SendErrors = promauto.NewCounter(prometheus.CounterOpts{ Name: "kafka_send_errors_total", Help: "The total number of send errors", }) )
Initialize Prometheus metrics
Functions ¶
func WriteToKafka ¶
WriteToKafka writes the event to Kafka
Types ¶
Click to show internal directories.
Click to hide internal directories.