gitlab-devops-metrics

command module
v0.0.0-...-f50d4bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 8 Imported by: 0

README

gitlab-devops-metrics

About

This project should help teams get some insights about their DevOps metrics.
It uses GitLab and its API to get those metrics. Currently only crawls GitLab for metrics of the last month

Usage

compile the code e.g. on linux:

GOOS=linux GOARCH=amd64 go build -o builds/get-devops-metrics

execute the binary and type in your group/team name:

./get-devops-metrics 

Providing an Auth Token

you can set the environment variable GITLAB_TOKEN to also access non public repositories e.g.

GITLAB_TOKEN=my-super-secret-token ./get-devops-metrics

Custom GitLab instance

if you want to run the crawler against a on-prem gitlab instance you can provide the environment variable GITLAB_BASE_URL an example could look like this:

GITLAB_BASE_URL="https://my-gitlabs-cooler-than-yours.mycompany.com" ./get-devops-metrics

Roadmap

  • commits
  • deployments
  • set custom timespan
  • make crawling parallel
  • better output formatting

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL