I setup Redash using this instruction, and it worked great:
However I’m not sure what information I should fill in to connect the Postgres server that was created at the same time. The docker-compose.yml has the following info for postgres:
The “Name” is something I can fill in anything I suppose, but Database name needs to be something specific? Username and password is not defined in the yml so I’m not sure what to put there…
the postgresql database set in docker-compose is the one needed by redash to tu and store queries and dashboard.
When creating a datasource to use in a dashboard or query, you have to set connection parameters for that thematic database.
Thank you, but where do I find those parameters? I used the standard, unaltered, setup script found in the link. I tried looking inside the setup files to see where these parameters are defined but havent found it yet.
I am sorry but I do not understand why you want to connect to redash’s own database ?
If you not want to create a dashboard over your own database, containing your thematic data (which could be one of the supported datasources) you should fill the “new datasource” parameters with the parameters corresponding to your own database server or data source.
For example my database, we I store all the data with produce on the fields is called “work_db” on a postgresql server running on host 10.30.40.111 on port 5432 and a User called redash_reader can connect to.
Those are the parameters I need to create a new datasource in redash to query and visualize.
As you said you can name the datasource as you want.
No, sorry i was unclear. I want to store the data on PostgreSQL. The standard setup script (linked in first post) sets up both redash and postgres (and some other stuff apparently) in docker.
The problem Im having is I cant find anywhere on the setup files info about what the parameters are (db name, user, pwd etc). I suppose I could setup a separate postgres server and connect to that maybe.
Location I surmise is ”localhost” since its running on same docker?
All the “other stuff” are redash requirements and redash service “internal tools”
Yes you should have your own database to store thematic information instead of doing that on redash database or redash PostgreSQL instance (which is a 9.6 version).
So you can create a recent PostgreSQL instance using for example PostgreSQL docker images manage and fill it with you own data and then create a redash datasource on it to query it.
Go to “opt/redash/env” in your browser. It will tell you the password of your PostgreSQL server (along with some other stuff I’m not quite sure what it is)
In Redash “Connect a Data Source” enter:
Name: Whatever you want to call it
Host: postgres
Port: I left it blank
User: postgres
Password: The password from opt/redash/env
SSL mode: I left it blank
Database name: postgres
1 Like
Login or sign up disabled while the site is in read only mode