scrapeconfig

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SCData

type SCData struct {
	LBClusters []*pb.LBcluster
}

type ScManifestData

type ScManifestData struct {
	ScrapeConfigB64 string
	Namespace       string
}

type ScrapeConfig

type ScrapeConfig struct {
	Cluster    *pb.K8Scluster
	LBClusters []*pb.LBcluster
	Directory  string
}

func (ScrapeConfig) GenerateAndApplyScrapeConfig

func (sc ScrapeConfig) GenerateAndApplyScrapeConfig() error

GenerateAndApplyScrapeConfig will template a secret with Prometheus configuration, for scraping Loadbalancers node-exporter endpoints it will create the secret in a applied namespace If there is no loadbalancers it will apply the config with no target endpoints

func (ScrapeConfig) RemoveLbScrapeConfig

func (sc ScrapeConfig) RemoveLbScrapeConfig() error

RemoveIfNoLbScrapeConfig will remove the LB scrape-config.yml

Jump to

Keyboard shortcuts

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