Skip to content
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

Configure the timescaledb image with our grafanareader user by default #39

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

ghickman
Copy link
Contributor

When running locally we need a grafanareader user set up in the timescaledb with appropriate permissions so we the TimescaleDBWriter class can create tables with the right permissions.

If you've run the compose stack locally you'll need to remove the timescaledb volume to make it reinitialise. So you can test with:

docker compose down
docker volume rm metrics_timescaledb
docker compose build timescaledb
docker compose up timescaledb

This should run and stay up if all works. You can then double check it's working by running one of the ingestion commands, a single day of GitHub data is the fastest one.

My intention is to use this same setup to fix CI for #38.

timescaledb/init.sql Show resolved Hide resolved
timescaledb/Dockerfile Outdated Show resolved Hide resolved
timescaledb-ha is the image built for use with kubernetes and was
mistakenly used when timescaledb was added to the project in 3f4892e.

This reduces the resulting image from ~3GB to ~700MB.
@ghickman ghickman merged commit 10779e2 into main Nov 21, 2023
7 checks passed
@ghickman ghickman deleted the timescale-setup branch November 21, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants