exporter

package
v0.0.0-...-acc543f Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Exporter

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

func NewExporter

func NewExporter(log *zap.Logger, statsd *statsd.Client, client *resty.Client) *Exporter

Creates new Exporter required by fx to initialize the application

func (*Exporter) GetRegistry

func (e *Exporter) GetRegistry(labels prometheus.Labels) *prometheus.Registry

Creates the registry that would be used by prometheus to get the metrics.

type MetricsHandler

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

func NewMetricsHandler

func NewMetricsHandler(exporter *Exporter) *MetricsHandler

Create new MetricsHandler required by fx to initialize the command

func (*MetricsHandler) GetMetrics

func (h *MetricsHandler) GetMetrics(c echo.Context) error

Handler function to serve the metrics endpoint queried by prometheus.

Jump to

Keyboard shortcuts

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