Prometheus exporter for AWS CloudWatch - Discovers services through AWS tags, gets CloudWatch metrics data and provides them as Prometheus metrics with AWS tags as labels
This PR starts a new unfinished code path for scraping discovery and custom namespaces jobs which is intended to,
Unify the code which scrape both job types
Propagate errors from individual job runs out of the scrapper to be handled by the caller
Be unit testable (this is 50% of the PR)
This PR starts introducing pieces of the implementation one at a time in digestible chunks with proper tests. The meaty changes are the entry point for the new scraper inscraper.go which will be injected into the existing scrape.go (it's the full no-test implementation if you're interested in skipping ahead).
This PR starts a new unfinished code path for scraping discovery and custom namespaces jobs which is intended to,
This PR starts introducing pieces of the implementation one at a time in digestible chunks with proper tests. The meaty changes are the entry point for the new scraper in
scraper.go
which will be injected into the existing scrape.go (it's the full no-test implementation if you're interested in skipping ahead).Related to https://github.com/nerdswords/yet-another-cloudwatch-exporter/issues/1094 There's another issue I need to open which this is a piece of related to splitting CloudWatch and ResourceMetadata jobs in to separate things.