github-exporter

command module
v0.0.0-...-1ea450c Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 10 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

CircleCI

github-exporter

The github-exporter exports Prometheus metrics for Github data.

Example Execution
./github-exporter daemon --service.collector.issue.customlabels='[ "kind/okr,goal/achieved", "kind/okr,goal/missed", "postmortem,team/batman", "postmortem,team/magic", "postmortem,team/spirit" ]' --service.github.auth.token=$(cat ~/.credential/github-exporter-github-token)
Example Queries

Showing a graph of the total number of open and closed issues.

github_exporter_issue_states_count

Showing a graph of open and closed postmortem issues.

github_exporter_issue_labels_count{labels="postmortem"}

Showing a graph of open and closed bug issues.

github_exporter_issue_labels_count{labels="kind/bug"}

Showing a graph of open and closed postmortem issues per team.

github_exporter_issue_labels_count{labels="postmortem,team/batman"}
github_exporter_issue_labels_count{labels="postmortem,team/magic"}
github_exporter_issue_labels_count{labels="postmortem,team/spirit"}
github_exporter_issue_labels_count{labels=~"postmortem,team/.*"}

Showing a graph of open and closed OKR issues per goal.

github_exporter_issue_labels_count{labels="kind/okr,goal/achieved"}
github_exporter_issue_labels_count{labels="kind/okr,goal/missed"}
github_exporter_issue_labels_count{labels=~"kind/okr,goal/.*"}

Showing a graph of postmortem issues per team to see how many days it took to resolve them.

histogram_quantile(0.95, github_exporter_issue_labels_lifetime_bucket{labels=~"postmortem,team/.*"})

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package server provides a server implementation to connect network transport protocols and service business logic by defining server endpoints.
Package server provides a server implementation to connect network transport protocols and service business logic by defining server endpoints.

Jump to

Keyboard shortcuts

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