pjcalvo / locust-influxdb-listener

LocustIO base project with a custom influxDB listener.
MIT License
26 stars 20 forks source link

incorrect counting of the number of "total" operations #5

Closed MykhailoKhil closed 3 years ago

MykhailoKhil commented 3 years ago

Hello there! I faced with problem when count total operation. In Grafana when I took request

SELECT count("counter")
FROM "locust_requests"
WHERE $timeFilter

actual number 43310 image

but expected 73365 by locust stats image

MykhailoKhil commented 3 years ago

Here my fix. Sorry cant do pull request for now. I use 'counter': self.env.stats.num_requests for __listen_for_requests_events() init.py.zip image image

pjcalvo commented 3 years ago

Closed on PR#6 https://github.com/hoodoo-digital/locust-influxdb-listener/pull/8