Skip to content

c1982/swe-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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