fetchers

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetcherTransport

type FetcherTransport struct {
	GorouterConf  config.GorouterConfig
	WrapTransport http.RoundTripper
}

func NewFetcherTransport

func NewFetcherTransport(gorouterConf config.GorouterConfig, transport http.RoundTripper) *FetcherTransport

func (FetcherTransport) RoundTrip

func (t FetcherTransport) RoundTrip(req *http.Request) (*http.Response, error)

type MetricsFetcher

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

func NewMetricsFetcher

func NewMetricsFetcher(scraper *scrapers.Scraper, routesFetcher RoutesFetch, externalExporters config.ExternalExporters) *MetricsFetcher

func (MetricsFetcher) Metric

func (f MetricsFetcher) Metric(route *models.Route, metricPathDefault string, headers http.Header) (map[string]*dto.MetricFamily, error)

func (MetricsFetcher) Metrics

func (f MetricsFetcher) Metrics(appIdOrPathOrName, metricPathDefault string, onlyAppMetrics bool, headers http.Header) (map[string]*dto.MetricFamily, error)

type RoutesFetch added in v0.10.0

type RoutesFetch interface {
	Run()
	Routes() models.Routes
}

type RoutesFetcher

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

func NewRoutesFetcher

func NewRoutesFetcher(confGorouters []config.GorouterConfig, healthCheck *healthchecks.HealthCheck) *RoutesFetcher

func (*RoutesFetcher) Routes

func (f *RoutesFetcher) Routes() models.Routes

func (*RoutesFetcher) Run

func (f *RoutesFetcher) Run()

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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