prometheus operator v0.71.2

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

7 fields
ScrapeConfig.spec.ec2SDConfigs[] fields and descriptions
Field / TypeDescription
object

AccessKey is the AWS API key.

  • x-kubernetes-map-type: "atomic"
object[]

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
integer

The port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.

refreshInterval
string

RefreshInterval configures the refresh interval at which Prometheus will re-read the instance list.

  • pattern: ^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$
region
string

The AWS region

roleARN
string

AWS Role ARN, an alternative to using AWS API keys.

object

SecretKey is the AWS API secret.

  • x-kubernetes-map-type: "atomic"