reloader

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reloader

type Reloader struct {
	SourceConfigPath       string
	TargetConfigPath       string
	PollingInterval        time.Duration
	Session                *cloudfoundry.Session
	PrometheusInstanceGUID string
	Labels                 map[string]string
	RemoteWriteConfigs     []*promconfig.RemoteWriteConfig
	RemoteReadConfigs      []*promconfig.RemoteReadConfig
	ScrapeConfigs          []*promconfig.ScrapeConfig
	Log                    *logrus.Logger

	sync.Mutex
	// contains filtered or unexported fields
}

func (*Reloader) GenerateConfig

func (r *Reloader) GenerateConfig() (*promconfig.Config, error)

func (*Reloader) Run

func (r *Reloader) Run(ctx context.Context) error

type RouteDestination

type RouteDestination struct {
	Port int
	ccv3.RouteDestination
}

I need the port in the destination, but ccv2 and ccv3 clients haven't implemnented it so make a func that fetches the full response

Jump to

Keyboard shortcuts

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