web

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(cfg *Config) error

Serve serves the PromLens web UI and API.

Types

type Config

type Config struct {
	Logger                     log.Logger
	ToolkitConfig              *toolkitweb.FlagConfig
	RoutePrefix                string
	ExternalURL                *url.URL
	Sharer                     sharer.Sharer
	GrafanaBackend             *grafana.Backend
	DefaultPrometheusURL       string
	DefaultGrafanaDatasourceID int64
}

Config configures the PromLens web UI and API.

Jump to

Keyboard shortcuts

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