prometheus operator v0.71.2

ScrapeConfig.spec.httpSDConfigs[].tlsConfig.cert.configMap.spec.ec2SDConfigs

EC2SDConfigs defines a list of EC2 service discovery configurations.

7 fields
ScrapeConfig.spec.httpSDConfigs[].tlsConfig.cert.configMap.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"