Skip to content

Commit

Permalink
fix E2E test by setting scrape_interval to 10s and adding fqdn flag
Browse files Browse the repository at this point in the history
Signed-off-by: SagiROosto <[email protected]>
  • Loading branch information
SagiROosto committed Nov 27, 2024
1 parent 88e138c commit 7efcbc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
command: |
cat \<< EOF > prometheus.yml
global:
scrape_interval: 1s
scrape_interval: 10s
scrape_configs:
- job_name: pushprox
proxy_url: http://127.0.0.1:8080
Expand Down
2 changes: 1 addition & 1 deletion end-to-end-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ while ! curl -s -f -L http://localhost:8080/clients; do
sleep 2
done

./pushprox-client --log.level=debug --proxy-url=http://localhost:8080 &
./pushprox-client --log.level=debug --proxy-url=http://localhost:8080 --fqdn $(hostname) &
echo $! > "${tmpdir}/client.pid"
while [ "$(curl -s -L 'http://localhost:8080/clients' | jq 'length')" != '1' ] ; do
echo 'Waiting for client'
Expand Down

0 comments on commit 7efcbc0

Please sign in to comment.