-
Notifications
You must be signed in to change notification settings - Fork 7
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]>
- Loading branch information
Showing
4 changed files
with
111 additions
and
7 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,16 @@ | ||
# Examples | ||
|
||
This directory contains examples, including: | ||
|
||
- [github-exporter](./github-exporter/README.md) | ||
|
||
The following ports will be exposed on the host: | ||
|
||
- Loki on <http://localhost:33100> | ||
- Grafana on <http://localhost:3000> | ||
- Grafana Agent on <http://localhost:12345> | ||
- Tempo on <http://localhost:33200> | ||
- Mimir on <http://localhost:38080> | ||
- Pyroscope on <http://localhost:34040> | ||
|
||
The Minio console is available at <http://localhost:9001> |
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,35 @@ | ||
# Prometheus GitHub Exporter | ||
|
||
Exposes basic metrics for your repositories from the GitHub API, to a Prometheus compatible endpoint. | ||
|
||
## Docker compose | ||
|
||
```yaml | ||
|
||
include: | ||
- path: https://github.com/qclaogui/codelab-monitoring.git#main:docker-compose/monolithic-mode/logs/compose.yaml | ||
|
||
# https://github.com/qclaogui/codelab-monitoring/blob/main/docker-compose/common/config/agent-flow/modules/docker/README.md | ||
services: | ||
github-exporter: | ||
image: githubexporter/github-exporter:latest | ||
environment: | ||
- REPOS=qclaogui/codelab-monitoring,grafana/agent | ||
|
||
``` | ||
|
||
## Try it | ||
|
||
```shell | ||
COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose up -d --remove-orphans | ||
``` | ||
|
||
```shell | ||
COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose down | ||
``` | ||
|
||
Once all containers are up and running you can search for metrics(from Mimir) logs(from Loki) traces(from Tempo) and profiles(Pyroscope) in Grafana. | ||
|
||
> In this case you can find `github-exporter` metrics and logs. | ||
Navigate to [http://localhost:3000](http://localhost:3000) |
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,23 @@ | ||
# ============================================================================ # | ||
# Github Exporter | ||
# ============================================================================ # | ||
|
||
# Usage: | ||
# COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose up -d --remove-orphans | ||
# COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose down | ||
|
||
# Note: | ||
# include is available in Docker Compose version 2.20 and later, and Docker Desktop version 4.22 and later. | ||
include: | ||
# - path: https://github.com/qclaogui/codelab-monitoring.git # All in one(Logs Traces Metrics Profiles) | ||
# - path: https://github.com/qclaogui/codelab-monitoring.git#main:docker-compose/monolithic-mode/metrics/compose.yaml # Metrics | ||
- path: https://github.com/qclaogui/codelab-monitoring.git#main:docker-compose/monolithic-mode/logs/compose.yaml # Metrics and Logs | ||
# - path: https://github.com/qclaogui/codelab-monitoring.git#main:docker-compose/monolithic-mode/traces/compose.yaml # Metrics and Traces | ||
# - path: https://github.com/qclaogui/codelab-monitoring.git#main:docker-compose/monolithic-mode/profiles/compose.yaml # Metrics and Profiles | ||
|
||
# https://github.com/qclaogui/codelab-monitoring/blob/main/docker-compose/common/config/agent-flow/modules/docker/README.md | ||
services: | ||
github-exporter: | ||
image: githubexporter/github-exporter:latest | ||
environment: | ||
- REPOS=qclaogui/codelab-monitoring,grafana/agent |