You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to monitor a public repository, you must put the public_repo option in the repo scope of your github token.
6
12
@@ -12,10 +18,11 @@ If you want to monitor a public repository, you must put the public_repo option
12
18
| Github Organizations | github_orgas, go | GITHUB_ORGAS | - | List all organizations you want get informations. Format \<orga1>,\<orga2>,\<orga3> (like test1,test2) |
13
19
| Github Repos | github_repos, grs | GITHUB_REPOS | - | List all repositories you want get informations. Format \<orga>/\<repo>,\<orga>/\<repo2>,\<orga>/\<repo3> (like test/test) |
14
20
| Exporter port | port, p | PORT | 9999 | Exporter port |
21
+
| Github Api URL | github_api_url, url | GITHUB_API_URL | api.github.com | Github API URL (primarily for Github Enterprise usage) |
15
22
16
23
## Exported stats
17
24
18
-
### github_job
25
+
### github_workflow_run_status
19
26
Gauge type
20
27
21
28
**Result possibility**
@@ -41,6 +48,32 @@ Gauge type
41
48
| workflow | Workflow Name |
42
49
| status | Workflow status (completed/in_progress) |
43
50
51
+
### github_workflow_run_duration_ms
52
+
Gauge type
53
+
54
+
**Result possibility**
55
+
56
+
| Gauge | Description |
57
+
|---|---|
58
+
| milliseconds | Number of milliseconds that a specific workflow run took time to complete. |
59
+
60
+
**Fields**
61
+
62
+
| Name | Description |
63
+
|---|---|
64
+
| event | Event type like push/pull_request/...|
65
+
| head_branch | Branch name |
66
+
| head_sha | Commit ID |
67
+
| node_id | Node ID (github actions) (mandatory ??) |
68
+
| repo | Repository like \<org>/\<repo> |
69
+
| run_number | Build id for the repo (incremental id => 1/2/3/4/...) |
70
+
| workflow_id | Workflow ID |
71
+
| workflow | Workflow Name |
72
+
| status | Workflow status (completed/in_progress) |
73
+
74
+
### github_job
75
+
> :warning:**This is a duplicate of the `github_workflow_run_status` metric that will soon be deprecated, do not use anymore.**
76
+
44
77
### github_runner_status
45
78
Gauge type
46
79
(If you have self hosted runner)
@@ -104,7 +137,7 @@ Gauge type
104
137
| repo | Repository like \<org>/\<repo> |
105
138
| status | Workflow status |
106
139
107
-
Es:
140
+
Example:
108
141
109
142
```
110
143
# HELP github_workflow_usage Number of billable seconds used by a specific workflow during the current billing cycle. Any job re-runs are also included in the usage. Only apply to workflows in private repositories that use GitHub-hosted runners.
0 commit comments