-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unix timestamp in stats/requests #332
Comments
Yes, It would help if Unix time stamps are added. As a work around you can also listen for slave_report event and collect the stats directly from slaves and push them to Graphite or Influx. Since the Slaves send stats with timestamp you wont have any time lag issues. (NOTE: This works only with distributed setup). We have used this in our test setup and works without any issues. Here is a sample from my code I got this idea from https://github.com/pglass/designate-locust/blob/master/graphite_client.py |
Hi @vividhsv Could you add the sample code please? |
Sorry, edited the commet above ..Hope it helps. |
Thanks for the example. |
nice! |
I'm polling the JSON block in stats/requests, but I'm creating my own Unix time:
https://github.com/bbc/locust-load-tests/blob/master/tests/lib/stats.py#L30
I wondered if you can add the Unix time to the API to avoid any time lag issues that may occur.
The text was updated successfully, but these errors were encountered: