Documentation
¶
Index ¶
Constants ¶
View Source
const ( Loggie = "loggie" PipelineNameKey = "pipeline" SourceNameKey = "source" InterceptorNameKey = "interceptor" QueueTypeKey = "type" )
Variables ¶
This section is empty.
Functions ¶
func Export ¶
func Export(topic string, m ExportedMetrics)
func HandlePromMetrics ¶
HandlePromMetrics export prometheus metrics
Types ¶
type Collector ¶
func NewCollector ¶
func NewCollector() *Collector
func (*Collector) Collect ¶
func (b *Collector) Collect(ch chan<- prometheus.Metric)
func (*Collector) Describe ¶
func (b *Collector) Describe(ch chan<- *prometheus.Desc)
Describe returns all descriptions of the collector.
type ExportedMetrics ¶
type ExportedMetrics []struct { Desc *prometheus.Desc Eval float64 ValType prometheus.ValueType }
Click to show internal directories.
Click to hide internal directories.