ScrapeConfig.spec.ec2SDConfigs[]
EC2SDConfig allow retrieving scrape targets from AWS EC2 instances. The private IP address is used by default, but may be changed to the public IP address with relabeling. The IAM credentials used must have the ec2:DescribeInstances permission to discover scrape targets See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#ec2_sd_config
| Field / Type | Description |
|---|---|
AccessKey is the AWS API key.
| |
Filters can be used optionally to filter the instance list by other criteria. Available filter criteria can be found here: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html Filter API documentation: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Filter.html | |
port | The port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule. |
refreshInterval | RefreshInterval configures the refresh interval at which Prometheus will re-read the instance list.
|
region | The AWS region |
roleARN | AWS Role ARN, an alternative to using AWS API keys. |
SecretKey is the AWS API secret.
|