metricsconfig

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ShutdownTimeoutDefault is a default value for metrics HTTP service timeout.
	ShutdownTimeoutDefault = 30 * time.Second

	// AddressDefault is a default value for metrics HTTP service endpoint.
	AddressDefault = ""
)

Variables

This section is empty.

Functions

func Address

func Address(c *config.Config) string

Address returns value of "address" config parameter from "metrics" section.

Returns AddressDefault if value is not set.

func ShutdownTimeout

func ShutdownTimeout(c *config.Config) time.Duration

ShutdownTimeout returns value of "shutdown_timeout" config parameter from "metrics" section.

Returns ShutdownTimeoutDefault if value is not positive duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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