lucrib / locust_influx Goto Github PK
View Code? Open in Web Editor NEWSend information about locust requests to influxdb.
License: Apache License 2.0
Send information about locust requests to influxdb.
License: Apache License 2.0
http://gateway-service.localhost/test/create
Body:
{"project_name":"Test Project 1",
"test_script":"Test Script","test_name":"Test Name","branch":"Test Branch","concurrent_users":"3","ramp_up":"4","test_duration":"2","locust_stop_timeout":"3","test_tool":"Locust","load_generator":"Local","test_notes":"Test"}
Hi @lucrib,
There are no influxdb databases included under Grafana when user is trying to access https://localhost:3000 with username and password as admin.
Hi,
with locust.io 1.0 somethings break, i managed to change the setup.py with:
install_requires=[
'locust>=1.0',
'influxdb>=5.2.2',
],
but loucst gives me:
File "/home/ubuntu/locust/venv/lib/python3.6/site-packages/locust_influx-0.2.4-py3.6.egg/locust_influx/init.py", line 168, in expose_metrics
TypeError: unsupported operand type(s) for +=: 'EventHook' and 'function'
Locust changed the event.py to "Eventook" from "EventHook()", which might explain the error, but why was that done?
When I am running a step load I would like to see the amount of users that I am hatching on each step so that I can keep a better monitoring.
From locustIO docs:
hatch_complete= <locust.events.EventHook object>
hatch_complete is fired when all locust users has been spawned.
Event is fire with the following arguments:
user_count: Number of users that was hatched
Enviroment:
OS: Windows 7
Python: 3.8.3
locust==1.1.1
This error happened when I was trying to install with pip install locust-influx
ERROR: Command errored out with exit status 1:
command: 'c:\users\usodv\pycharmprojects\load_se\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\usodv\AppData\Local\Temp\pip-install-4wbku0p0\locustio\setup.py'"'"'; file='"'"'C:\Users\usodv\AppData\L
ocal\Temp\pip-install-4wbku0p0\locustio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\usodv\AppData\Local\Te
mp\pip-record-539zlfny\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\usodv\pycharmprojects\load_se\venv\include\site\python3.8\locustio'
cwd: C:\Users\usodv\AppData\Local\Temp\pip-install-4wbku0p0\locustio
Complete output (4 lines):
running install
**** Locust package has moved from 'locustio' to 'locust'. Please update your reference (or pin your version to 0.14.6 if you dont want to update to 1.0) ****
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\usodv\pycharmprojects\load_se\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\usodv\AppData\Local\Temp\pip-install-4wbku0p0\locustio\setup.py'"'"'; file=
'"'"'C:\Users\usodv\AppData\Local\Temp\pip-install-4wbku0p0\locustio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record
'C:\Users\usodv\AppData\Local\Temp\pip-record-539zlfny\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\usodv\pycharmprojects\load_se\venv\include\site\python3.8\locustio' Check the logs for full command output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.