proxmetrics

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrFetch

type ErrFetch struct {
	Code    int
	Message string
}

func ErrNoEndpointFound

func ErrNoEndpointFound(appIdOrPath, endpoint string) *ErrFetch

func ErrNoInstanceFound

func ErrNoInstanceFound(instanceUuid string) *ErrFetch

func (ErrFetch) Error

func (e ErrFetch) Error() string

type Fetcher

type Fetcher struct {
	// contains filtered or unexported fields
}

func NewFetcher

func NewFetcher(scraper *Scraper, targets []*config.ProxyMetricsTarget) *Fetcher

func (Fetcher) Gather

func (f Fetcher) Gather() ([]*dto.MetricFamily, error)

func (Fetcher) Metric

func (f Fetcher) Metric(target *config.ProxyMetricsTarget) ([]*dto.MetricFamily, error)

func (Fetcher) ServeHTTP

func (f Fetcher) ServeHTTP(w http.ResponseWriter, req *http.Request)

type ReaderGzip

type ReaderGzip struct {
	// contains filtered or unexported fields
}

func NewReaderGzip

func NewReaderGzip(main io.ReadCloser) (*ReaderGzip, error)

func (ReaderGzip) Close

func (r ReaderGzip) Close() error

func (ReaderGzip) Read

func (r ReaderGzip) Read(p []byte) (n int, err error)

type Scraper

type Scraper struct {
	// contains filtered or unexported fields
}

func NewScraper

func NewScraper(tlsConf *tls.Config) *Scraper

func (Scraper) Scrape

func (s Scraper) Scrape(target *config.ProxyMetricsTarget) (io.ReadCloser, error)

type StatusCollector

type StatusCollector struct {
	// contains filtered or unexported fields
}

func NewStatusCollector

func NewStatusCollector(gslocConsul *disco.GslocConsul) *StatusCollector

func (*StatusCollector) Collect

func (s *StatusCollector) Collect(metrics chan<- prometheus.Metric)

func (*StatusCollector) Describe

func (s *StatusCollector) Describe(descs chan<- *prometheus.Desc)

type StatusHandler

type StatusHandler struct {
	// contains filtered or unexported fields
}

func NewStatusHandler added in v0.10.0

func NewStatusHandler(collector *StatusCollector, allowedInspect []*config.CIDR, trustXFF bool) *StatusHandler

func (*StatusHandler) ServeHTTP added in v0.10.0

func (s *StatusHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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