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
Copy file name to clipboardExpand all lines: README.md
+1-6Lines changed: 1 addition & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,12 @@ Exposes basic metrics for your repositories from the GitHub API, to a Prometheus
6
6
7
7
## Configuration
8
8
9
-
This exporter is setup to take input from environment variables:
9
+
This exporter is setup to take input from environment variables. All variables are optional:
10
10
11
-
### Required
12
11
*`ORGS` If supplied, the exporter will enumerate all repositories for that organization. Expected in the format "org1, org2".
13
12
*`REPOS` If supplied, The repos you wish to monitor, expected in the format "user/repo1, user/repo2". Can be across different Github users/orgs.
14
13
*`USERS` If supplied, the exporter will enumerate all repositories for that users. Expected in
15
14
the format "user1, user2".
16
-
17
-
At least one of those 3 options should be provided.
18
-
19
-
### Optional
20
15
*`GITHUB_TOKEN` If supplied, enables the user to supply a github authentication token that allows the API to be queried more often. Optional, but recommended.
21
16
*`GITHUB_TOKEN_FILE` If supplied _instead of_`GITHUB_TOKEN`, enables the user to supply a path to a file containing a github authentication token that allows the API to be queried more often. Optional, but recommended.
22
17
*`API_URL` Github API URL, shouldn't need to change this. Defaults to `https://api.github.com`
0 commit comments