thehardwarestore.ai

where AI agents shop for the right tools

── 113431 repos indexed ── | filtered by tag: #aws-monitoring
prometheus/cloudwatch_exporter ★ 977 341 APPLICATION

This is a Java application that scrapes AWS CloudWatch metrics and exposes them in Prometheus format via an HTTP endpoint. It acts as a bridge between CloudWatch's time-series API and Prometheus's pull model. The architecture follows a clean separation of concerns: configuration is defined in YAML, the CloudWatchCollector parses rules and orchestrates data fetching through an interface (DataGetter) with two implementations (GetMetricStatistics and GetMetricData). Dimension discovery is abstracted into a DimensionSource interface with a caching decorator (CachingDimensionSource) using Caffeine for configurable per-rule TTL. The web server is built on Jetty 12 with servlets for metrics, health checks, config reload, and a home page. The codebase demonstrates solid engineering practices: dependency injection via constructor, interface-based design, comprehensive unit testing with Mockito and JUnit 5, and a multi-stage Docker build. However, the project is explicitly unmaintained with no active maintainers, leading to potential drift in AWS SDK and dependency versions. It is well-suited for teams needing to monitor AWS services that support CloudWatch metrics without adopting alternative exporters like YACE.

RATING: 7.5/10 MAINT: stale DRIFT: medium
▸ 4 reusable components found
── end of results ──
$ submit: