Pushing the test results into Prometheus
less than a minute
You can use the following command to do it:
atest run --report prometheus --report-file http://localhost:9091 \
-p sample/testsuite-gitee.yaml --duration 30m --qps 1
It will push the test results data into Prometheus PushGateway. Then Prometheus could get the metrics from it.
Skip the following instructions if you are familiar with Prometheus:
docker run \
-p 9090:9090 \
-v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \
-v /root/prometheus.yml:/etc/prometheus/prometheus.yml \
prom/prometheus
docker run -p 9091:9091 \
-v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \
prom/pushgateway
docker run -p 3000:3000 docker.io/grafana/grafana
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified November 18, 2024: feat: support to generate robot-framework script (#563) (0f02984)