- Make sure musicbrainz db and the required database tables are present.
- Follow https://github.com/metabrainz/musicbrainz-docker to install the required containers and db dumps.
- Rename the
.env.exampleto.env, to set theRUN_MODEtodevelopment.- Rename
config/development.example.tomltoconfig/development.tomlandconfig/production.example.tomltoconfig/production.toml.- Ensure yq is installed, for using configs in the sql scripts.
- After ensuring musicbrainz_db is running on port 5432, Run the script
init_db.shin scripts dir.- In
config/development.tomlfile, create a sentry rust project, enter your sentry project DSN (Data Source Name) in theurlkey's value.- Get the Internet Archive API accesskey and secret from here (requires sign in). Paste them in
config/development.tomlfile[wayback_machine_api]'s variablesmyaccesskeyandmysecret.
There are 2 methods to run the program:
- Build the project and run.
- Make sure rust is installed.
-
cargo build && ./target/debug/melba
- Use the Dockerfile
- Note that the container has to run in the same network as musicbrainz db network bridge.
docker-compose -f docker/docker-compose.dev.yml up --build
- Note that the container has to run in the same network as musicbrainz db network bridge.
-
On your browser, go to
localhost:3000, to access grafana. Login using admin as username and password. -
Go to Dashboard. Select
melba-dashboard. -
If the
Rust app metrics panelshows no data, just click on the refresh icon on top right corner. -
To edit, right-click on the panel and select edit option. You can edit the panel, and save the generated json in
grafana/dashboards/metrics-dashboard.json.



