Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScManifestData ¶
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
Click to show internal directories.
Click to hide internal directories.