-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Weifeng Wang <[email protected]> Update README.md Signed-off-by: Weifeng Wang <[email protected]> Better Update README.md Signed-off-by: Weifeng Wang <[email protected]> Update README.md Signed-off-by: Weifeng Wang <[email protected]>
- Loading branch information
Showing
10 changed files
with
219 additions
and
82 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
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
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,51 @@ | ||
# Prometheus GitHub Exporter | ||
|
||
Exposes basic metrics for your repositories from the GitHub API, to a Prometheus compatible endpoint. | ||
|
||
## Docker compose | ||
|
||
`compose.yaml`: | ||
|
||
```yaml | ||
include: | ||
# use git remote | ||
- path: https://github.com/qclaogui/codelab-monitoring.git#main:docker-compose/monolithic-mode/logs/compose.yaml | ||
# use local path | ||
# - path: ../../docker-compose/monolithic-mode/logs/compose.yaml | ||
|
||
services: | ||
github-exporter: | ||
labels: | ||
metrics.agent.grafana.com/scrape: true | ||
image: githubexporter/github-exporter:1.1.0 | ||
environment: | ||
- REPOS=grafana/agent | ||
``` | ||
`compose.override.yaml`: | ||
|
||
```yaml | ||
services: | ||
# override included service grafana for dashboards pre-provisioning | ||
grafana: | ||
volumes: | ||
- ./dashboards:/var/lib/grafana/dashboards/github-mixin | ||
``` | ||
|
||
## Try it | ||
|
||
```shell | ||
COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose up -d --remove-orphans | ||
``` | ||
|
||
Once all containers are up and running you can search for metrics in Grafana. | ||
|
||
> In this case you can find `github-exporter` metrics and logs. | ||
|
||
Navigate to [http://localhost:3000](http://localhost:3000) | ||
|
||
## Stop services | ||
|
||
```shell | ||
COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose down | ||
``` |
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
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
Oops, something went wrong.