Skip to content

Commit

Permalink
e2e test prometheus operator scrape config and probes
Browse files Browse the repository at this point in the history
Signed-off-by: qiyang <[email protected]>
  • Loading branch information
dominicqi committed Nov 22, 2024
1 parent 7ab7b88 commit 5f4991f
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,27 @@ spec:
---
apiVersion: batch/v1
kind: Job
metadata:
name: check-metrics
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: check-metrics
image: curlimages/curl
args:
- /bin/sh
- -c
- |
for i in $(seq 30); do
if curl -m 1 -s http://prometheus-cr-v1beta1-collector:9090/metrics | grep "otelcol"; then exit 0; fi
sleep 5
done
exit 1
---
apiVersion: batch/v1
kind: Job
metadata:
name: check-ta-scrape-config-v1beta1
spec:
Expand Down

0 comments on commit 5f4991f

Please sign in to comment.