nerdswords / yet-another-cloudwatch-exporter

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
Apache License 2.0
953 stars 328 forks source link

Start a unified scraper #1432

Closed kgeckhart closed 1 month ago

kgeckhart commented 2 months ago

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 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).

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.