Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTarball ¶
func CreateTarball(indexerConfig indexers.IndexerConfig) error
func DecodeMetricsEndpoint ¶
func DecodeMetricsEndpoint(metricsEndpoint string, metricsEndpoints *[]metricEndpoint)
Decodes metrics endpoint yaml file
Types ¶
type Scraper ¶
type Scraper struct { PrometheusClients []*prometheus.Prometheus AlertMs []*alerting.AlertManager IndexerList []indexers.Indexer Metadata map[string]interface{} }
ScraperResponse holds parsed data related to scraper and target indexer
func ProcessMetricsScraperConfig ¶
func ProcessMetricsScraperConfig(scraperConfig ScraperConfig) Scraper
Processes common config and executes according to the caller
type ScraperConfig ¶
type ScraperConfig struct { ConfigSpec config.Spec Password string PrometheusStep time.Duration MetricsEndpoint string MetricsProfiles []string AlertProfiles []string SkipTLSVerify bool URL string Token string Username string UserMetaData string RawMetadata map[string]interface{} EmbedConfig bool }
ScraperConfig holds data related to scraper and target indexer
Click to show internal directories.
Click to hide internal directories.