GithubHelp home page GithubHelp logo

Comments (8)

cyberw avatar cyberw commented on June 15, 2024

There was a bug, so only env var (PGPASSWORD) worked. Try now with the latest version! (2.5.6)

from locust-plugins.

ashanmuga avatar ashanmuga commented on June 15, 2024

Thanks, Now I am seeing TimescaleListener is removed, how can I invoke my own postgresDB and send locust success results to Postgres.

from locust-plugins.

cyberw avatar cyberw commented on June 15, 2024

Its not removed, just renamed & reworked. Follow the instructions here https://github.com/SvenskaSpel/locust-plugins/tree/master/locust_plugins/timescale

from locust-plugins.

ashanmuga avatar ashanmuga commented on June 15, 2024

if I want to send stats to my own DB instance, can I do like below.
**locust --timescale --headless -f LocustScript.py --pghost=localhost --pguser=admin --pgpassword=admin
While running above code I am getting below error.

Could not connect to postgres. Use standard postgres env vars or --pg* command line options to specify where to report locust samples (https://www.postgresql.org/docs/11/libpq-envars.html)
[2022-03-09 11:10:58,231] ashanmu-ltmzzer.internal.salesforce.com/ERROR/root: FATAL:  password authentication failed for user "**mysystemname**"

Any other env variables do I need to pass? I am using same credentials via psycopg2.connect, its working fine

from locust-plugins.

cyberw avatar cyberw commented on June 15, 2024

Doh! I had the same error for pghost & pguser. Also added --pgport and --pgdatabase while I was at it... Try it now (2.5.9)

from locust-plugins.

ashanmuga avatar ashanmuga commented on June 15, 2024

Thanks for fixing this. Now I am not getting any error. Not sure its connected to DB or not. locust stats not sent to DB. even I give wrong password while running command, no error thrown. Also if I want to send my success stats to my own DB, do I need to override any method in my locust file? I am following the instructions here,https://github.com/SvenskaSpel/locust-plugins/tree/master/locust_plugins/timescale, but I want send locust results to my own DB and Grafana not needed. How can I do that using this plugin

from locust-plugins.

cyberw avatar cyberw commented on June 15, 2024

Sorry, thats all the time I have for now. If you want to, then keep digging and send me some more details (e.g. Is the grafana link being printed etc)

from locust-plugins.

ashanmuga avatar ashanmuga commented on June 15, 2024

I am looking to send locust result statistics to my own Postgres DB, this is the only part I am trying to do. Reason behind that, we want to store all the historical data of locust results to compare against.

from locust-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.