fetchers

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 RouterStart added in v1.0.0

type RouterStart struct {
	Id                               string   `json:"id"`
	Hosts                            []string `json:"hosts"`
	MinimumRegisterIntervalInSeconds int      `json:"minimumRegisterIntervalInSeconds"`
	PruneThresholdInSeconds          int      `json:"pruneThresholdInSeconds"`
}

type RoutesFetch added in v0.10.0

type RoutesFetch interface {
	Run(signals <-chan os.Signal, ready chan<- struct{}) error
	Routes() models.Routes
}

type RoutesFetcher

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

func NewRoutesFetcher

func NewRoutesFetcher(mbusClient mbus.Client, c *config.Config, reconnected <-chan mbus.Signal, healthCheck *healthchecks.HealthCheck) *RoutesFetcher

func (*RoutesFetcher) Dropped added in v1.0.0

func (f *RoutesFetcher) Dropped() (int, error)

func (*RoutesFetcher) Pending added in v1.0.0

func (f *RoutesFetcher) Pending() (int, error)

func (*RoutesFetcher) RouteHandler added in v1.4.0

func (f *RoutesFetcher) RouteHandler(w http.ResponseWriter, req *http.Request)

func (*RoutesFetcher) Routes

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

func (*RoutesFetcher) Run

func (f *RoutesFetcher) Run(signals <-chan os.Signal, ready chan<- struct{}) error

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