ScraperLoggingConfiguration
Source:
src/AWS/AMP/ScraperLoggingConfiguration.ts
The logging configuration of an Amazon Managed Service for Prometheus scraper — ships the scraper’s component logs (service discovery, collection, export) to a CloudWatch Logs log group. A scraper has at most one.
Creating a Scraper Logging Configuration
Section titled “Creating a Scraper Logging Configuration”const logs = yield* Logs.LogGroup("ScraperLogs", { logGroupName: "/aws/vendedlogs/prometheus/scraper",});const logging = yield* AMP.ScraperLoggingConfiguration("ScraperLogging", { scraperId: scraper.scraperId, logGroupArn: logs.logGroupArn,});