handler

package
v0.0.0-...-246a067 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DashboardHistogram = prometheus.NewHistogram(prometheus.HistogramOpts{
	Name:    "dashboard_duration_seconds",
	Help:    "The duration of the dashboard rendering in seconds",
	Buckets: prometheus.DefBuckets,
})

DashboardHistogram is an example of histogram metric for the dashboard rendering.

Functions

This section is empty.

Types

type DashboardHandler

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

DashboardHandler is the http handler to render the dashboard.

func NewDashboardHandler

func NewDashboardHandler(config *config.Config) *DashboardHandler

NewDashboardHandler returns a new DashboardHandler.

func (*DashboardHandler) Handle

func (h *DashboardHandler) Handle() echo.HandlerFunc

Handle handles the http request.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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