Skip to content

Commit

Permalink
Dashboards: Fix timescale hypertable (the dump didnt work very well, …
Browse files Browse the repository at this point in the history
…"requests" had become a partitioned, but not proper hypertable).

Also added a nice Makefile so you can run "make build down up" to refresh everything
  • Loading branch information
cyberw committed Dec 2, 2022
1 parent 816bf09 commit 622d713
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 5,495 deletions.
9 changes: 9 additions & 0 deletions locust_plugins/dashboards/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
build:
cd locust-timescale && make build
cd locust-grafana && make build

down:
locust-compose down -v

up:
locust-compose up
2 changes: 1 addition & 1 deletion locust_plugins/dashboards/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3"

services:
postgres:
image: cyberw/locust-timescale:4
image: cyberw/locust-timescale:5
networks:
- timenet
expose:
Expand Down
2 changes: 1 addition & 1 deletion locust_plugins/dashboards/locust-timescale/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ RUN apk add bash curl jq
# Grafana setup commands
COPY *.sh /commands/
# Import table and index definitions on startup
COPY timescale_schema.sql /docker-entrypoint-initdb.d/
COPY *.sql /docker-entrypoint-initdb.d/
2 changes: 1 addition & 1 deletion locust_plugins/dashboards/locust-timescale/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TAG=4
TAG=5
IMAGE_NAME=cyberw/locust-timescale:$(TAG)

build:
Expand Down
Loading

0 comments on commit 622d713

Please sign in to comment.