prometheus

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Loggie          = "loggie"
	PipelineNameKey = "pipeline"
	SourceNameKey   = "source"
	QueueTypeKey    = "type"
)

Variables

This section is empty.

Functions

func Export

func Export(topic string, m ExportedMetrics)

func HandlePromMetrics

func HandlePromMetrics() http.Handler

HandlePromMetrics export prometheus metrics

Types

type Collector

type Collector struct {
	Metrics sync.Map
	// contains filtered or unexported fields
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL