metrics

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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

func ImportTarball

func ImportTarball(tarball string, indexer *indexers.Indexer) error

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

Jump to

Keyboard shortcuts

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