Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mla-spendesk committed Oct 3, 2023
2 parents 2bfc2bb + 6ff44a4 commit 31d0470
Show file tree
Hide file tree
Showing 16 changed files with 516 additions and 426 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16 as builder
FROM golang:1.18 as builder

WORKDIR /app
COPY . .
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# PLEASE THIS REPO IS NOT MAINTAIN ANYMORE AND WILL BE ARCHIVED SOON



# github-actions-exporter
github-actions-exporter for prometheus

Expand Down Expand Up @@ -32,7 +36,7 @@ Authentication can either via a Github Token or the Github App Authentication 3
| Github App Private Key | app_private_key, gpk | GITHUB_APP_PRIVATE_KEY | - | Github App Authentication Private Key |
| Github Refresh | github_refresh, gr | GITHUB_REFRESH | 30 | Refresh time Github Actions status in sec |
| Github Organizations | github_orgas, go | GITHUB_ORGAS | - | List all organizations you want get informations. Format \<orga1>,\<orga2>,\<orga3> (like test1,test2) |
| Github Repos | github_repos, grs | GITHUB_REPOS | - | List all repositories you want get informations. Format \<orga>/\<repo>,\<orga>/\<repo2>,\<orga>/\<repo3> (like test/test) |
| Github Repos | github_repos, grs | GITHUB_REPOS | - | [Optional] List all repositories you want get informations. Format \<orga>/\<repo>,\<orga>/\<repo2>,\<orga>/\<repo3> (like test/test). Defaults to all repositories owned by the organizations. |
| Exporter port | port, p | PORT | 9999 | Exporter port |
| Github Api URL | github_api_url, url | GITHUB_API_URL | api.github.com | Github API URL (primarily for Github Enterprise usage) |
| Github Enterprise Name | enterprise_name | ENTERPRISE_NAME | "" | Enterprise name. Needed for enterprise endpoints (/enterprises/{ENTERPRISE_NAME}/*). Currently used to get Enterprise level tunners status |
Expand All @@ -51,6 +55,7 @@ Gauge type
| 1 | Success |
| 2 | Skipped |
| 3 | In Progress |
| 4 | Queued |

**Fields**

Expand Down Expand Up @@ -112,6 +117,7 @@ Gauge type
| os | Operating system (linux/macos/windows) |
| repo | Repository like \<org>/\<repo> |
| status | Runner status (online/offline) |
| busy | Runner busy or not (true/false) |

### github_runner_organization_status
Gauge type
Expand All @@ -133,6 +139,7 @@ Gauge type
| os | Operating system (linux/macos/windows) |
| orga | Organization name |
| status | Runner status (online/offline) |
| busy | Runner busy or not (true/false) |

### github_runner_enterprise_status
Gauge type
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm-chart/github-actions-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ version: 0.1.4
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 1.8.0
appVersion: 1.8.1
50 changes: 36 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,18 +1,40 @@
module github-actions-exporter
module github.com/spendesk/github-actions-exporter

go 1.16
go 1.18

require (
github.com/andybalholm/brotli v1.0.3 // indirect
github.com/bradleyfalzon/ghinstallation v1.1.1
github.com/fasthttp/router v1.3.9
github.com/go-kit/kit v0.10.0 // indirect
github.com/google/go-github v17.0.0+incompatible // indirect
github.com/google/go-github/v38 v38.1.0
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/prometheus/client_golang v1.11.0
github.com/urfave/cli/v2 v2.3.0
github.com/valyala/fasthttp v1.22.0
golang.org/x/oauth2 v0.0.0-20210311163135-5366d9dc1934
github.com/bradleyfalzon/ghinstallation/v2 v2.1.0
github.com/die-net/lrucache v0.0.0-20220628165024-20a71bc65bf1
github.com/fasthttp/router v1.4.11
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-github/v45 v45.2.0
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
github.com/prometheus/client_golang v1.13.0
github.com/urfave/cli/v2 v2.11.2
github.com/valyala/fasthttp v1.39.0
golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094
)

require (
github.com/andybalholm/brotli v1.0.4 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/golang-jwt/jwt/v4 v4.4.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/klauspost/compress v1.15.0 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/savsgio/gotils v0.0.0-20220530130905-52f3993e8d6d // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.1 // indirect
)
Loading

0 comments on commit 31d0470

Please sign in to comment.