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
type MetricsFetcher ¶
type MetricsFetcher struct {
// contains filtered or unexported fields
}
func NewMetricsFetcher ¶
func NewMetricsFetcher(scraper *scrapers.Scraper, routesFetcher *RoutesFetcher) *MetricsFetcher
func (MetricsFetcher) Metric ¶
func (f MetricsFetcher) Metric(route models.Route) (map[string]*dto.MetricFamily, error)
func (MetricsFetcher) Metrics ¶
func (f MetricsFetcher) Metrics(appIdOrPathOrName string) (map[string]*dto.MetricFamily, error)
type RoutesFetcher ¶
type RoutesFetcher struct {
// contains filtered or unexported fields
}
func NewRoutesFetcher ¶
func NewRoutesFetcher(confGorouters []config.GorouterConfig) *RoutesFetcher
func (RoutesFetcher) Routes ¶
func (f RoutesFetcher) Routes() models.Routes
func (RoutesFetcher) Run ¶
func (f RoutesFetcher) Run()
Click to show internal directories.
Click to hide internal directories.