github-project-exporter

command module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

github-project-exporter

Export GitHub project status to Prometheus.

Install

Just want the binary?

Go to the releases page, find the version you want, and download the tarball file.

Run as container?
$ docker pull summerwind/github-project-exporter:latest
Building binary yourself

To build the binary you need to install Go, dep and task.

$ task vendor
$ task build

Usage

You can specify the repository name with --github.repository flag to export the project metrics of the repository. An GitHub access token must be specified in --github.token.

$ github-project-exporter --github.token ${ACCESS_TOKEN} --github.repository summerwind/github-project-exporter

If you want to expose the project metrics of the organization, you can use --github.organization instead of --github.repository.

$ github-project-exporter --github.token ${ACCESS_TOKEN} --github.organization summerwind

Multiple flags can also be used.

$ github-project-exporter --github.token ${ACCESS_TOKEN} --github.repository summerwind/github-project-exporter --github.repository summerwind/h2spec

Metrics

This exporter will expose these metrics.

Metric Meaning Labels
github_organization_projects How many projects are in the organization. organization
github_organization_project_columns How many columns are in the organization project. organization, project
github_organization_project_cards How many cards are in the organization project. organization, project, column
github_repository_projects How many projects are in the repository. repository
github_repository_project_columns How many columns are in the repository project. repository, project
github_repository_project_cards How many cards are in the repository project. repository, project, column

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