metrics

package
v0.0.0-...-5b9f10b Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordFailedRequestMetric

func RecordFailedRequestMetric()

func RecordSuccessfulRequestMetric

func RecordSuccessfulRequestMetric()

func StartMetricsServer

func StartMetricsServer(conf *MetricsConfig)

Types

type MetricsConfig

type MetricsConfig struct {
	Port    int  `default:"10250" envvar:"METRICS_PORT"`
	Enabled bool `default:"true" envvar:"METRICS_ENABLED"`
}

Jump to

Keyboard shortcuts

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