prometheusreporter

package
v0.0.0-...-ab63307 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusReporter

type PrometheusReporter struct {
	// contains filtered or unexported fields
}

PrometheusReporter is translating events into Prometheus metrics

func NewPrometheusReporter

func NewPrometheusReporter(registry prometheus.Registerer) *PrometheusReporter

NewPrometheusReporter creates a new PrometheusReporter instance

func (*PrometheusReporter) WriteMetrics

func (p *PrometheusReporter) WriteMetrics(events []m.Metric) error

WriteMetrics converts the received into Prometheus metrics. Any are registered in the Prometheus registry the first time they created and we update these metrics later. This way we can manage counters correctly.

Jump to

Keyboard shortcuts

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