exporter

package
v0.47.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Metrics is a slice of prometheus metrics specific to the scraping process such API call counters

Functions

func UpdateMetrics

func UpdateMetrics(
	ctx context.Context,
	config config.ScrapeConf,
	registry *prometheus.Registry,
	metricsPerQuery int,
	labelsSnakeCase bool,
	cloudwatchSemaphore, tagSemaphore chan struct{},
	cache session.SessionCache,
	observedMetricLabels map[string]model.LabelSet,
	logger logging.Logger,
)

UpdateMetrics can be used to scrape metrics from AWS on demand using the provided parameters. Scraped metrics will be added to the provided registry and any labels discovered during the scrape will be added to observedMetricLabels with their metric name as the key. Any errors encountered are not returned but will be logged and will either fail the scrape or a partial metric result will be added to the registry.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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