metrics

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 ImportTarball(tarball string, indexer *indexers.Indexer, metricsDir string) error

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

Jump to

Keyboard shortcuts

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