scrapeconfig

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LBcluster

type LBcluster struct {
	NodePools *NodePools
}

type NodePools

type NodePools struct {
	Dynamic []*pb.NodePool
	Static  []*pb.NodePool
}

type SCData

type SCData struct {
	LBClusters []*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