Documentation
¶
Index ¶
- func EnsureLabelConsistencyForMetrics(metrics []*promutil.PrometheusMetric, ...) []*promutil.PrometheusMetric
- func MigrateCloudwatchToPrometheus(cwd []*cloudwatchData, labelsSnakeCase bool, ...) ([]*promutil.PrometheusMetric, map[string]model.LabelSet, error)
- func ScrapeAwsData(ctx context.Context, cfg config.ScrapeConf, metricsPerQuery int, ...) ([]*services.TaggedResource, []*cloudwatchData)
- type Clock
- type TimeClock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureLabelConsistencyForMetrics ¶
func EnsureLabelConsistencyForMetrics(metrics []*promutil.PrometheusMetric, observedMetricLabels map[string]model.LabelSet) []*promutil.PrometheusMetric
EnsureLabelConsistencyForMetrics ensures that every metric has the same set of labels based on the data in observedMetricLabels. Prometheus requires that all metrics with the same name have the same set of labels
func ScrapeAwsData ¶
func ScrapeAwsData( ctx context.Context, cfg config.ScrapeConf, metricsPerQuery int, cloudwatchSemaphore, tagSemaphore chan struct{}, cache session.SessionCache, logger logger.Logger, ) ([]*services.TaggedResource, []*cloudwatchData)
Types ¶
Click to show internal directories.
Click to hide internal directories.