-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from cnieg/add_dockerhub_readme
Add a file and a job to update our docker hub description
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Gitlab tokens prometheus exporter | ||
|
||
Exports the number of days before expiration of gitlab tokens as Prometheus metrics | ||
|
||
## Getting Started | ||
|
||
The following environment variables are mandatory : | ||
|
||
``` | ||
GITLAB_BASEURL=<gitlab hostname> | ||
GITLAB_TOKEN=<gitlab authentication token> | ||
``` | ||
|
||
Optional environment variables : | ||
``` | ||
DATA_REFRESH_HOURS=6 (should be > 0 and <= 24 or else, it will be set to the default value: 6) | ||
``` | ||
|
||
You can launch an instance using the following docker command : | ||
``` | ||
docker run -it --rm -e "GITLAB_BASEURL=<gitlab hostname>" -e "GITLAB_TOKEN=<gitlab authentication token>" cnieg/gitlab-tokens-exporter:latest | ||
``` | ||
|
||
## Known limitations | ||
|
||
When launching the exporter, it will first get infos on **all** the gitlab tokens, so it can take some time depending on the number of projects to scan. | ||
The exporter returns `204 No Content` until the first scan is done. |