mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-21 03:38:43 +00:00
chore: fix tests
PR #7126 and PR #7131 were merged in sequence but the former changed the format of the Prometheus configuration significantly which breaks the new tests added in #7131. Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
6c0ee036c1
commit
98158ea2a2
4 changed files with 28 additions and 0 deletions
7
pkg/prometheus/testdata/SettingScrapeFallbackProtocolInPodMonitor_NewVersion.golden
generated
vendored
7
pkg/prometheus/testdata/SettingScrapeFallbackProtocolInPodMonitor_NewVersion.golden
generated
vendored
|
@ -51,6 +51,13 @@ scrape_configs:
|
|||
replacement: web
|
||||
- source_labels:
|
||||
- __address__
|
||||
- __tmp_hash
|
||||
target_label: __tmp_hash
|
||||
regex: (.+);
|
||||
replacement: $1
|
||||
action: replace
|
||||
- source_labels:
|
||||
- __tmp_hash
|
||||
target_label: __tmp_hash
|
||||
modulus: 1
|
||||
action: hashmod
|
||||
|
|
7
pkg/prometheus/testdata/SettingScrapeFallbackProtocolInPodMonitor_OldVersion.golden
generated
vendored
7
pkg/prometheus/testdata/SettingScrapeFallbackProtocolInPodMonitor_OldVersion.golden
generated
vendored
|
@ -51,6 +51,13 @@ scrape_configs:
|
|||
replacement: web
|
||||
- source_labels:
|
||||
- __address__
|
||||
- __tmp_hash
|
||||
target_label: __tmp_hash
|
||||
regex: (.+);
|
||||
replacement: $1
|
||||
action: replace
|
||||
- source_labels:
|
||||
- __tmp_hash
|
||||
target_label: __tmp_hash
|
||||
modulus: 1
|
||||
action: hashmod
|
||||
|
|
|
@ -70,6 +70,13 @@ scrape_configs:
|
|||
replacement: web
|
||||
- source_labels:
|
||||
- __address__
|
||||
- __tmp_hash
|
||||
target_label: __tmp_hash
|
||||
regex: (.+);
|
||||
replacement: $1
|
||||
action: replace
|
||||
- source_labels:
|
||||
- __tmp_hash
|
||||
target_label: __tmp_hash
|
||||
modulus: 1
|
||||
action: hashmod
|
||||
|
|
|
@ -70,6 +70,13 @@ scrape_configs:
|
|||
replacement: web
|
||||
- source_labels:
|
||||
- __address__
|
||||
- __tmp_hash
|
||||
target_label: __tmp_hash
|
||||
regex: (.+);
|
||||
replacement: $1
|
||||
action: replace
|
||||
- source_labels:
|
||||
- __tmp_hash
|
||||
target_label: __tmp_hash
|
||||
modulus: 1
|
||||
action: hashmod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue