ScrapeConfig.spec.gceSDConfigs[]
GCESDConfig configures scrape targets from GCP GCE instances. The private IP address is used by default, but may be changed to the public IP address with relabeling. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#gce_sd_config The GCE service discovery will load the Google Cloud credentials from the file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable. See https://cloud.google.com/kubernetes-engine/docs/tutorials/authenticating-to-cloud-platform A pre-requisite for using GCESDConfig is that a Secret containing valid Google Cloud credentials is mounted into the Prometheus or PrometheusAgent pod via the `.spec.secrets` field and that the GOOGLE_APPLICATION_CREDENTIALS environment variable is set to /etc/prometheus/secrets/<secret-name>/<credentials-filename.json>.
| Field / Type | Description |
|---|---|
filter | filter defines the filter that can be used optionally to filter the instance list by other criteria Syntax of this filter is described in the filter query parameter section: https://cloud.google.com/compute/docs/reference/latest/instances/list
|
port | port defines the port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.
|
project | project defines the Google Cloud Project ID
|
refreshInterval | refreshInterval defines the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
|
tagSeparator | tagSeparator defines the tag separator is used to separate the tags on concatenation
|
zone | zone defines the zone of the scrape targets. If you need multiple zones use multiple GCESDConfigs.
|