1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 03:38:43 +00:00

chore: fix tests

PR  and PR  were merged in sequence but the former changed the
format of the Prometheus configuration significantly which breaks the
new tests added in .

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2024-11-21 14:22:14 +01:00
parent 6c0ee036c1
commit 98158ea2a2
No known key found for this signature in database
GPG key ID: 0190A66C0A10FC4F
4 changed files with 28 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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