1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-06 18:46:40 +01:00
Files
prometheus-operator/pkg/prometheus/testdata/ScrapeConfigSpecConfig_LightSailSDConfigValidAPIKeys.golden
Simon Pasquier d728a1ce9d fix: add runtime configuration for PrometheusAgent
In #6667, we forgot to support the new runtime configuration for the
PrometheusAgent CRD.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2024-11-08 09:19:56 +01:00

20 lines
499 B
Plaintext
Generated

global:
scrape_interval: 30s
external_labels:
prometheus: default/test
prometheus_replica: $(POD_NAME)
evaluation_interval: 30s
scrape_configs:
- job_name: scrapeConfig/default/testscrapeconfig1
lightsail_sd_configs:
- region: us-east-1
endpoint: https://lightsail.us-east-1.amazonaws.com/
port: 9100
refresh_interval: 30s
access_key: access-key
secret_key: secret-key
relabel_configs:
- source_labels:
- job
target_label: __tmp_prometheus_job_name