metrics

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 10

Documentation

Index

Constants

View Source
const (
	Namespace = "gatewayd"
)

Variables

This section is empty.

Functions

func ExposeMetrics

func ExposeMetrics(metricsConfig *MetricsConfig, logger hclog.Logger)

ExposeMetrics exposes the Prometheus metrics via HTTP over Unix domain socket.

Types

type MetricsConfig

type MetricsConfig struct {
	Enabled          bool
	UnixDomainSocket string
	Endpoint         string
}

func NewMetricsConfig added in v0.0.4

func NewMetricsConfig(config map[string]interface{}) *MetricsConfig

NewMetricsConfig returns a new MetricsConfig struct.

Jump to

Keyboard shortcuts

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