Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Provide( NewExporter, NewMetricsHandler, )
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func NewExporter ¶
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.
Click to show internal directories.
Click to hide internal directories.