prometheus

package
v14.10.5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// ScrapeTimeout is the allowed duration of a Prometheus scrape before timing out.
	ScrapeTimeout time.Duration `toml:"scrape_timeout,omitempty"`
	// GRPCLatencyBuckets configures the histogram buckets used for gRPC
	// latency measurements.
	GRPCLatencyBuckets []float64 `toml:"grpc_latency_buckets,omitempty"`
}

Config contains additional configuration data for prometheus

func DefaultConfig added in v14.2.0

func DefaultConfig() Config

DefaultConfig returns a new config with default values set.

func (*Config) Configure

func (c *Config) Configure()

Configure configures latency buckets for prometheus timing histograms

Jump to

Keyboard shortcuts

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