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:
- edit .swed.config file for your system
- mkdir /opt/swed
- cd /opt/swed
- copy .swed-config /opt/swed
- copy swed binary to /opt/swed
chmod +x /opt/swed/swed
- copy .swed.config to /etc/systemd/system
systemctl enable swed.service
systemctl start swed.service
- 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;
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