This repository contains scripts and instructions for setting up a local Grafana instance with MotherDuck-DuckDB integration.
- Clone this repo
- Docker (Installation guide)
./setup.sh
Once the script completes, access Grafana at localhost:3000 (the default credentials are admin/admin)
- Navigate to the dashboard section
- Create a new dashboard
- Select MotherDuck-DuckDB as your data source
- Important: Set the format to time series at the top of the query
- Switch from builder to code in the query section if you'd like to enter SQL manually
SELECT created_date, COUNT(status)
FROM sample_data.nyc.service_requests
GROUP BY created_date LIMIT 1000If you have created a dashboard you want others to use it here is guide on how
- There is an
exportbutton on the dashboard. Press it. If not you can go to the dashboard settings and underJSON modelyou can copy the json - copy the json and create a json file under the privisioning/dashboards/json
- Example
- provisioning/dashboards/json/mdw.json
- Example
- save, commit, push
- create a Pull Request
