@@ -263,18 +263,6 @@ jobs:
263263 name : allure-results
264264 path : ./artifacts/reports/allure/results
265265
266- - name : Push renamed metrics
267- working-directory : ' ./artifacts/metrics'
268- run : |
269- sed -E '
270- s/^(e2e_cpu_seconds_total)\{/e2e_cpu_seconds_total_v1\{/;
271- s/^(e2e_memory_rss_bytes)\{/e2e_memory_rss_bytes_v1\{/
272- ' prometheus.txt > prometheus_renamed.txt
273- sed -E 's/\s+[0-9]+(\.[0-9]+)?$//' prometheus.txt > prometheus_no_ts.txt
274- printf '\n*****************\n'
275- printf '\n curl e2e_cpu_seconds_total \n'
276- cat prometheus_renamed.txt
277-
278266 - name : Upload performance metrics
279267 uses : actions/upload-artifact@v4
280268 with :
@@ -302,11 +290,12 @@ jobs:
302290 EOF
303291 pwd
304292 ls -al ./artifacts/metrics/prometheus.txt
293+ head ./artifacts/metrics/prometheus.txt
305294
306295 - name : Start pushgateway server
307296 run : |
308297 docker run -d --name pushgateway -p 9091:9091 prom/pushgateway
309- cat ./artifacts/metrics/prometheus_no_ts .txt | curl --data-binary @- http://localhost:9091/metrics/job/e2e-perf
298+ cat ./artifacts/metrics/prometheus .txt | curl --data-binary @- http://localhost:9091/metrics/job/e2e-perf
310299 #docker run -d --name http-server -v $(pwd):/app -w /app -p 8000:8000 python:3.11-slim python -m http.server 8000 > http.log 2>&1
311300 printf '\n*****************\n'
312301 echo 'This is my current directory:'
@@ -319,13 +308,16 @@ jobs:
319308 - name : Run Prometheus
320309 run : |
321310 # Enable logs for debugging
322- # docker run --name prometheus -v $(pwd):/etc/prometheus -p 9090:9090 --link pushgateway:pushgateway prom/prometheus:latest --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:9090 --log.level=debug
323- docker run -d --name prometheus -v $(pwd):/etc/prometheus -p 9090:9090 --link pushgateway:pushgateway prom/prometheus:latest --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:9090 > prom.log 2>&1
311+ docker run --name prometheus -v $(pwd):/etc/prometheus -p 9090:9090 --link pushgateway:pushgateway prom/prometheus:latest --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:9090 --log.level=debug
312+ # docker run -d --name prometheus -v $(pwd):/etc/prometheus -p 9090:9090 --link pushgateway:pushgateway prom/prometheus:latest --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:9090 > prom.log 2>&1
324313 sleep 20
325314 # Uncomment for troubleshooting.
326315 printf '\n*****************\n'
327316 printf '\n curl e2e_cpu_seconds_total \n'
328317 curl http://localhost:9090/api/v1/query?query=e2e_cpu_seconds_total_v1
318+ printf '\n*****************\n'
319+ printf '\n cat prom.log \n'
320+ cat prom.log
329321 #printf '\n*****************\n'
330322 #printf '\n send_failures_total \n'
331323 #curl 'http://localhost:9090/api/v1/query?query=prometheus_remote_storage_queue_send_failures_total'
0 commit comments