Skip to content

l54808821/lake

 
 

Repository files navigation


Dev Lake

PRs Welcome Discord badge

What is Dev Lake?

Dev Lake is the one-stop solution that integrates, analyzes, and visualizes software development data throughout the software development life cycle (SDLC) for engineering teams.

Dev Lake Grafana Dashboard

Why choose Dev Lake?

  1. Supports various data sources (Gitlab, Jira) and more are being added all the time
  2. Relevant, customizable data metrics ready to view as visual charts
  3. Easily build and view new charts and dashboards with Grafana
  4. Easy-to-setup via Docker
  5. Extensible plugin system to add your own data collectors
  6. Designed to process enterprise-scale data

Contents

Section Description Documentation Link
Data Sources Links to specific plugin usage & details View Section
User Setup Steps to run the project as a user View Section
Developer Setup How to setup dev environment View Section
Tests Commands for running tests View Section
Grafana How to visualize the data View Section
Build a Plugin Details on how to make your own Link
Add Plugin Metrics Guide to adding plugin metrics Link
Contributing How to contribute to this repo Link

Data Sources We Currently Support

Below is a list of data source plugins used to collect & enrich data from specific sources. Each have a README.md file with basic setup, troubleshooting and metrics info.

For more information on building a new data source plugin see Build a Plugin.

Section Section Info Docs
Jira Metrics, Generating API Token, Find Project/Board ID Link
Gitlab Metrics, Generating API Token Link
Jenkins Metrics, Generating API Token Link

User setup

NOTE: If you only plan to run the product, this is the only section you should need NOTE: Commands written like this are to be run in your terminal

Required Packages to Install

NOTE: After installing docker, you may need to run the docker application and restart your terminal

Commands to run in your terminal

  1. Clone repository

    git clone https://github.com/merico-dev/lake.git devlake
    cd devlake
    cp .env.example .env
  2. Start Docker on your machine and then you can run docker-compose up config-ui to start up the configuration interface

For more info on how to configure plugins, please refer to the data source plugins, section

  1. Visit localhost:4000 to setup configuration files

  2. Run docker-compose up -d to start up the other services

  3. Visit localhost:4000/triggers to run collection triggers for plugins

Please replace your gitlab projectId and jira boardId in the request body. This can take up to 20 minutes for large projects. (gitlab 10k+ commits or jira 5k+ issues)

  1. Click Go to grafana when done (username: admin, password: admin)

Setup cron job

Commonly, we have requirement to synchorize data periodly. We providered a tool called lake-cli to meet that requirement. Check lake-cli usage at here.

Otherwise, if you just want to use the cron job, please check docker-compose version at here

Developer Setup

Requirements

  • Docker
  • Golang
  • Make
    • Mac (Already installed)
    • Windows: Download
    • Ubuntu: sudo apt-get install build-essential

How to setup dev environment

  1. Navigate to where you would like to install this project and clone the repository

    git clone https://github.com/merico-dev/lake.git
    cd lake
  2. Install go packages

    make install
  3. Copy sample config files to new local file

    cp .env.example .env
  4. Start the docker containers

    Make sure the docker application is running before this step

    make compose
  5. Run the project

    make dev
  6. You can now post to /task to create a jira task. This will collect data from Jira

    curl -XPOST 'localhost:8080/task' \
    -H 'Content-Type: application/json' \
    -d '[{
        "plugin": "jira",
        "options": {
            "boardId": 8
        }
    }]'
    
  7. Visualize the data in the Grafana Dashboard

    From here you can see existing data visualized from collected & enriched data

    • Navigate to http://localhost:3002 (username: admin, password: admin)
    • You can also create/modify existing/save dashboards to lake
    • For more info on working with Grafana in Dev Lake see Grafana Doc

Tests

To run the tests: make test

Grafana

We use Grafana as a visualization tool to build charts for the data stored in our database. Using SQL queries we can add panels to build, save, and edit customized dashboards.

All the details on provisioning, and customizing a dashboard can be found in the Grafana Doc

Contributing

CONTRIBUTING.md

Need help?

Message us on Discord

About

Data lake for dev.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 70.2%
  • JavaScript 23.6%
  • CSS 2.7%
  • Shell 2.6%
  • Other 0.9%