DevLake is a data engineering platform designed to collect, store, and analyze software development data from various tools.
This guide provides detailed instructions to set up and use DevLake in your local environment.
- Docker and Docker Compose installed
- A GitHub Access Token (for GitHub integration)
-
Clone the DevLake repository:
git clone https://github.com/leds-org/leds-dashboard.git cd leds-dashboard
-
Configure the variables in
docker-compose.yml
and.env
as needed. -
Generate the
ENCRYPTION_SECRET
using the following command:openssl rand -base64 2000 | tr -dc 'A-Z' | fold -w 128 | head -n 1
-
Start DevLake by running:
docker-compose up -d
This will start the containers needed to run the DevLake environment.
-
Access the DevLake dashboard at
http://localhost:4000
.- Use the username and password configured in
docker-compose.yml
to log in.
- Use the username and password configured in
-
In the side menu, click on Connections.
-
Select GitHub and click on Create a New Connection.
-
Fill in the required information and enter the GitHub Access Token for authentication.
-
Test the connection by clicking Test Connection.
-
Click Save Connection. After saving, you'll be redirected to the connection screen:
-
Click on + Add Data Scope, select the desired repositories, and click Save.
- In the side menu, click Projects and then + New Project.
- Enter a project name and click Save.
- When editing the project, in the Data Connection section, click + Add a Connection.
- Select the previously created connection, choose the desired repositories, and click Save.
- Adjust the data sync frequency under the Sync Policy menu within the project.
Your DevLake environment is now configured and ready to use!
DevLake uses Grafana to display the collected data.
-
Access Grafana at
http://localhost:4000/grafana
. -
Use the default credentials admin:admin to log in (it's recommended to change the password after the first login).
-
Access Grafana’s main dashboard:
-
In the side menu, click on Dashboards to view the available dashboards.
Example of a GitHub dashboard:
Your DevLake environment is ready to use! You can now explore and analyze the data collected from the integrated tools.
For more information, check out the official documentation.