Giter Club home page Giter Club logo

swe-dashboard's Introduction

swe-dashboard

Software Engineer Metrics

Configuration

  • scm-gitlab-baseurl
  • scm-gitlab-token
  • victoriametrics-importurl
  • check-interval

Runing

Download binary from releases

./swed --scm-gitlab-baseurl=https://your-domain-name/api/v4 \
--scm-gitlab-token=TOKEN \
--victoriametrics-importurl=http://localhost:8428/api/v1/import/prometheus \
--check-interval=1h

Docker

docker run --rm --name=swed c1982/swed \
--scm-gitlab-baseurl=https://your-domain-name/api/v4 \
--scm-gitlab-token=TOKEN \
--victoriametrics-importurl=http://localhost:8428/api/v1/import/prometheus \
--check-interval=1h

Easy Setup

Note: Firstly enter your gitlab variables in config.env file

git clone https://github.com/c1982/swe-dashboard.git
cd swe-dashboard/docker
docker-compose --env-file ./config.env up

Daemon

If you want to run the daemon as a service, you can use the following commands:

  1. edit .swed.config file for your system
  2. mkdir /opt/swed
  3. cd /opt/swed
  4. copy .swed-config /opt/swed
  5. copy swed binary to /opt/swed
  6. chmod +x /opt/swed/swed
  7. copy .swed.config to /etc/systemd/system
  8. systemctl enable swed.service
  9. systemctl start swed.service
  10. watch for errors journalctl -u swed.service -f

VictoriaMetrics Tips

Delete time series;

curl http://localhost:8428/api/v1/admin/tsdb/delete_series?match[]=METRIC_NAME

Clear Cache;

curl http://localhost:8428/internal/resetRollupResultCache

Metrics

  • Cycletime
  • Time to Open
  • Time to Review
  • Time to Approve
  • Time to Merge
  • Friday MRs/PRs
  • Long-Running MRs/PRs
  • MRs/PRs Comments LeaderBoard
  • MRs/PRs Participants LeaderBoard
  • MRs/PRs Rates
  • MRs/PRs Sizes
  • MRs/PRs Throughput
  • Self-Merging MRs/PRs
  • Developer Turnover Rate
  • Unreviewed MRs/PRs
  • Review Coverage
  • Defect Rate
  • MRs/PRs Success Rate
  • Active Contributors
  • Additin/Deletion Lines of Code
  • ART Asset Iterations
  • ART Asset Iteration Ratio
  • ART Asset Iteration Hours

Supported SCM

  • Gitlab Community Edition
  • GitHub (implemented, not tested)

Supported TimeSeries DB

  • Victoriametrics

Grafana Dashboards

Metrics Dashboard:

MRs/PRs Cycle Times

MRs/PRs Times

Single Cycle Times

Long-Running MRs/PRs

MRs/PRs Size Counts

Friday MRs/PRs

Unreviewed MRs/PRs

MRs/PRs Comments

MRs/PRs Rates

MRs/PRs Participants

Self-Merging Users

Repositories Cycle Time

Repositories Time to Open

Repositories Time to Review

Repositories Time to Approve

Repositories Time to Merge

Defect Rate

User Defect Rate

TODO: image

MRs/PRs Success Rate

TODO: image

Asset Iteration Ratio

TODO: image

Asset Iterations

TODO: image

Asset Iteration Hour

TODO: image

Active Contributors

swe-dashboard's People

Contributors

c1982 avatar fatihkahveci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

swe-dashboard's Issues

metric does not write error with docker-compose

First of all, thank you for this repo.

I try to run it with docker-compose.

However, I get the following from swed container.

{"level":"error","error":"GET https://gitlab.com/api/v4/merge_requests: 500 {message: 500 Internal Server Error}","metric":"selfmerging","time":"2022-02-16T18:41:43Z","message":"metric does not write"}

Any idea what might be the problem and how to fix it?

PS: I have tried with full permission Gitlab Access Token

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.