1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 15:46:31 +01:00
Files
prometheus-operator/pkg/prometheus/testdata/ScrapeConfigSpecConfig_WithOAuth.golden
Nutmos 449b19e065 Add unit tests for OAuth2 in ScrapeConfig (#7098)
*  add unit testcases for oauth2 in scrapeconfig CRD
2024-12-19 22:29:33 +05:30

23 lines
503 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
oauth2:
client_id: client-id
client_secret: client-secret
token_url: http://test.url
scopes:
- scope 1
- scope 2
endpoint_params:
param1: value1
param2: value2
relabel_configs:
- source_labels:
- job
target_label: __tmp_prometheus_job_name