SvenskaSpel / locust-plugins

A set of useful plugins/extensions for Locust
Apache License 2.0
562 stars 138 forks source link

how to create table testrun events and user_count #1

Closed FANHIDE closed 4 years ago

FANHIDE commented 4 years ago

When i use TimescaleListener, i found that the listeners_timescale_table.sql file only contains create table request. There is my question: how to create table testrun events and user_count

thx!

cyberw commented 4 years ago

hi! I added the full schema now: https://github.com/SvenskaSpel/locust-plugins/blob/master/locust_plugins/timescale_schema.sql

Let me know if it works or not :)

FANHIDE commented 4 years ago

thx!I will try later~

FANHIDE commented 4 years ago

hi, there is a new question when i want to insert into testrun table. image the _changeset_guid = 'lsls'

cyberw commented 4 years ago

Maybe you need to add timescale to your config? https://github.com/timescale/timescaledb/issues/562

FANHIDE commented 4 years ago

I use the docker image to start the timescale,the image is timescale/timescaledb:latest-pg10

I just check the config : image I try to restart the docker container , create the table again. But it doesn't work

cyberw commented 4 years ago

Try running it from cli and add the update command listed here first https://docs.timescale.com/latest/using-timescaledb/troubleshooting

FANHIDE commented 4 years ago

thx! I solved this just now~