@@ -263,18 +263,6 @@ jobs:
263
263
name : allure-results
264
264
path : ./artifacts/reports/allure/results
265
265
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
-
278
266
- name : Upload performance metrics
279
267
uses : actions/upload-artifact@v4
280
268
with :
@@ -302,11 +290,12 @@ jobs:
302
290
EOF
303
291
pwd
304
292
ls -al ./artifacts/metrics/prometheus.txt
293
+ head ./artifacts/metrics/prometheus.txt
305
294
306
295
- name : Start pushgateway server
307
296
run : |
308
297
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
310
299
#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
311
300
printf '\n*****************\n'
312
301
echo 'This is my current directory:'
@@ -321,11 +310,14 @@ jobs:
321
310
# Enable logs for debugging
322
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
323
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
324
- sleep 20
313
+ sleep 60
325
314
# Uncomment for troubleshooting.
326
315
printf '\n*****************\n'
327
316
printf '\n curl e2e_cpu_seconds_total \n'
328
317
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
329
321
#printf '\n*****************\n'
330
322
#printf '\n send_failures_total \n'
331
323
#curl 'http://localhost:9090/api/v1/query?query=prometheus_remote_storage_queue_send_failures_total'
0 commit comments