- Get your ClickHouse credentials
To connect to ClickHouse with HTTP(S) you need this information:
| Parameter(s) | Description |
|---|---|
HOST and PORT | Typically, the port is 8443 when using TLS or 8123 when not using TLS. |
DATABASE NAME | Out of the box, there is a database named default, use the name of the database that you want to connect to. |
USERNAME and PASSWORD | Out of the box, the username is default. Use the username appropriate for your use case. |
curl command.
If you’re using self-managed ClickHouse, the connection details are set by your ClickHouse administrator.
- Connect Draxlr to ClickHouse
- Click on the Connect a Database button on the navbar.
- Select ClickHouse from the list of available databases and click next.
- Choose one of the hosting services and click next.
- Use any name in the Connection Name field.
- Add the connection details in the form.
- Click on the Next button and wait for the connection to be established. You will see the tables page if the connection is successful.
- Explore your data
- Click on one of the tables in the list.
- It will take you to the explore page to see the data in the table.
- You can start adding the filters, make joins and add sort to your data.
- You can also use the Graph button and select the graph type to visualize the data.
- Using SQL queries
- Click on the Explore button on the navbar.
- Click the Raw Query button and enter your query in the text area.
- Click on the Execute Query button to see the results.
- Saving you query
- After executing your query, click on the Save Query button.
- You can name to query in Query Name text box and select a folder to categories it.
- You can also use Add to dashboard option to add the result to dashboard.
- Click on the Save button to save the query.
- Building dashboards
- Click on the Dashboards button on the navbar.
- You can add a new dashboard by clicking on the Add + button on the left sidebar.
- To add a new widget, click on the Add button on the top right corner.
- You can select a query from the list of saved queries and choose the visualization type then click on the Add Dashboard Item button.