Skip to content

Commit 8719954

Browse files
committed
e2e test
1 parent f2a8cf2 commit 8719954

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/e2e-targetallocator/targetallocator-prometheuscr/00-install.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ spec:
136136
receivers:
137137
prometheus:
138138
config:
139+
global:
140+
scrape_interval: 30s
141+
scrape_protocols: ['PrometheusProto','OpenMetricsText1.0.0','OpenMetricsText0.0.1','PrometheusText0.0.4']
139142
scrape_configs: []
140143
141144
processors:

tests/e2e-targetallocator/targetallocator-prometheuscr/01-install.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ spec:
4545
args:
4646
- /bin/sh
4747
- -c
48-
- curl -s http://prometheus-cr-targetallocator/scrape_configs | grep "prometheus-cr"
48+
- >
49+
curl -s http://prometheus-cr-targetallocator/scrape_configs |
50+
grep "prometheus-cr" && grep "PrometheusProto"
4951
---
5052
apiVersion: batch/v1
5153
kind: Job

0 commit comments

Comments
 (0)