interface CfnScraperProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.APS.CfnScraperProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsaps#CfnScraperProps |
Java | software.amazon.awscdk.services.aps.CfnScraperProps |
Python | aws_cdk.aws_aps.CfnScraperProps |
TypeScript | aws-cdk-lib » aws_aps » CfnScraperProps |
Properties for defining a CfnScraper
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-scraper.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_aps as aps } from 'aws-cdk-lib';
const cfnScraperProps: aps.CfnScraperProps = {
destination: {
ampConfiguration: {
workspaceArn: 'workspaceArn',
},
},
scrapeConfiguration: {
configurationBlob: 'configurationBlob',
},
source: {
eksConfiguration: {
clusterArn: 'clusterArn',
subnetIds: ['subnetIds'],
// the properties below are optional
securityGroupIds: ['securityGroupIds'],
},
},
// the properties below are optional
alias: 'alias',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
destination | IResolvable | Destination | The Amazon Managed Service for Prometheus workspace the scraper sends metrics to. |
scrape | IResolvable | Scrape | The configuration in use by the scraper. |
source | IResolvable | Source | The Amazon EKS cluster from which the scraper collects metrics. |
alias? | string | An optional user-assigned scraper alias. |
tags? | Cfn [] | (Optional) The list of tag keys and values associated with the scraper. |
destination
Type:
IResolvable
|
Destination
The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
scrapeConfiguration
Type:
IResolvable
|
Scrape
The configuration in use by the scraper.
source
Type:
IResolvable
|
Source
The Amazon EKS cluster from which the scraper collects metrics.
alias?
Type:
string
(optional)
An optional user-assigned scraper alias.
tags?
Type:
Cfn
[]
(optional)
(Optional) The list of tag keys and values associated with the scraper.