Documentation ¶
Index ¶
- func CreateTarball(indexerConfig indexers.IndexerConfig, tarballName string) error
- func DecodeMetricsEndpoint(metricsEndpoint string, metricsEndpoints *[]prometheus.MetricEndpoint)
- func ImportTarball(tarball string, indexer *indexers.Indexer, metricsDir string) error
- func IndexDatapoints(docsToIndex map[string][]interface{}, indexerType indexers.IndexerType, ...)
- type Scraper
- type ScraperConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTarball ¶ added in v1.7.0
func CreateTarball(indexerConfig indexers.IndexerConfig, tarballName string) error
func DecodeMetricsEndpoint ¶
func DecodeMetricsEndpoint(metricsEndpoint string, metricsEndpoints *[]prometheus.MetricEndpoint)
Decodes metrics endpoint yaml file
func ImportTarball ¶
func IndexDatapoints ¶ added in v1.8.0
func IndexDatapoints(docsToIndex map[string][]interface{}, indexerType indexers.IndexerType, indexer *indexers.Indexer)
Indexes datapoints to a specified indexer.
Types ¶
type Scraper ¶
type Scraper struct { PrometheusClients []*prometheus.Prometheus AlertMs []*alerting.AlertManager Indexer *indexers.Indexer Metadata map[string]interface{} }
ScraperResponse holds parsed data related to scraper and target indexer
func ProcessMetricsScraperConfig ¶
func ProcessMetricsScraperConfig(metricsScraperConfig 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 MetricsProfile string AlertProfile string SkipTLSVerify bool URL string Token string Username string UserMetaData string RawMetadata map[string]interface{} }
ScraperConfig holds data related to scraper and target indexer
Click to show internal directories.
Click to hide internal directories.