internal

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventExporter

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

func NewEvenExporter

func NewEvenExporter(registry *prometheus.Registry, channel string, logger logrus.FieldLogger) *EventExporter

func (*EventExporter) Flush

func (e *EventExporter) Flush()

func (*EventExporter) Handler

func (e *EventExporter) Handler() http.Handler

func (*EventExporter) MetricsHandlerFunc

func (e *EventExporter) MetricsHandlerFunc() http.HandlerFunc

type PrometheusAdapter

type PrometheusAdapter struct {
	Subsystem string
	Namespace string
	// contains filtered or unexported fields
}

func NewPrometheusAdapter

func NewPrometheusAdapter(registry *prometheus.Registry, logger logrus.FieldLogger, ns, sub string) *PrometheusAdapter

func (*PrometheusAdapter) AddMetricSamples

func (a *PrometheusAdapter) AddMetricSamples(samples []metrics.SampleContainer)

func (*PrometheusAdapter) Handler

func (a *PrometheusAdapter) Handler() http.Handler

Jump to

Keyboard shortcuts

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