Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Metrics = []prometheus.Collector{ promutil.CloudwatchAPICounter, promutil.CloudwatchAPIErrorCounter, promutil.CloudwatchGetMetricDataAPICounter, promutil.CloudwatchGetMetricStatisticsAPICounter, promutil.ResourceGroupTaggingAPICounter, promutil.AutoScalingAPICounter, promutil.TargetGroupsAPICounter, promutil.APIGatewayAPICounter, promutil.Ec2APICounter, promutil.DmsAPICounter, promutil.StoragegatewayAPICounter, }
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.
Click to show internal directories.
Click to hide internal directories.