prom

package
v5.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Clusters = NewClusters()

Functions

func Init

func Init(opts []Options) error

Types

type ClusterType

type ClusterType struct {
	Opts      Options
	Transport *http.Transport
}

type ClustersType

type ClustersType struct {
	M map[string]ClusterType
}

func NewClusters

func NewClusters() ClustersType

func (*ClustersType) Get

func (cs *ClustersType) Get(name string) (ClusterType, bool)

func (*ClustersType) Put

func (cs *ClustersType) Put(name string, cluster ClusterType)

type Options

type Options struct {
	Name string
	Prom string

	BasicAuthUser string
	BasicAuthPass string

	Timeout               int64
	DialTimeout           int64
	TLSHandshakeTimeout   int64
	ExpectContinueTimeout int64
	IdleConnTimeout       int64
	KeepAlive             int64

	MaxConnsPerHost     int
	MaxIdleConns        int
	MaxIdleConnsPerHost int
}

Jump to

Keyboard shortcuts

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