AWS::APS::ScraperA scraper is a fully-managed agentless collector that discovers and pulls metrics automatically. A scraper pulls metrics from Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for Prometheus workspace. Scrapers are flexible. You can configure the scraper to control what metrics are collected, the frequency of collection, what transformations are applied to the metrics, and more. An IAM role will be created for you that Amazon Managed Service for Prometheus uses to access the metrics in your cluster. You must configure this role with a policy that allows it to scrape metrics from your cluster. For more information, see [Configuring your Amazon EKS cluster](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-eks-setup) in the *Amazon Managed Service for Prometheus User Guide* . The `scrapeConfiguration` parameter contains the YAML configuration for the scraper. > For more information about collectors, including what metrics are collected, and how to configure the scraper, see [Using an AWS managed collector](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html) in the *Amazon Managed Service for Prometheus User Guide* .
import { CfnScraper } from 'aws-cdk-lib/aws-aps';Or use the module namespace:
import * as aps from 'aws-cdk-lib/aws-aps';
// aps.CfnScraperConfiguration passed to the constructor as CfnScraperProps.
destinationRequiredIResolvable | DestinationPropertyThe Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
scrapeConfigurationRequiredIResolvable | ScrapeConfigurationPropertyThe configuration in use by the scraper.
sourceRequiredIResolvable | SourcePropertyThe Amazon EKS cluster from which the scraper collects metrics.
aliasOptionalstringAn optional user-assigned scraper alias.
roleConfigurationOptionalIResolvable | RoleConfigurationPropertyThe role configuration in an Amazon Managed Service for Prometheus scraper.
scraperLoggingConfigurationOptionalIResolvable | ScraperLoggingConfigurationPropertyThe definition of logging configuration in an Amazon Managed Service for Prometheus workspace.
tagsOptionalCfnTag[](Optional) The list of tag keys and values associated with the scraper.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apsAWS::APS::Scraper