Based on https://github.com/vegasbrianc/github-monitoring with following changes:
$ git diff
diff --git a/docker-compose.yml b/docker-compose.yml
index d1084d7..80bb8c3 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -50,7 +50,7 @@ services:
- 9171:9171
image: infinityworks/github-exporter:latest
environment:
- - REPOS=freeCodeCamp/freeCodeCamp, docker/docker
- - GITHUB_TOKEN=<GitHub API Token see README>
+ - REPOS=quarkusio/quarkus, quarkusio/quarkus-quickstarts, quarkusio/quarkusio.github.io
+ - GITHUB_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaa
networks:
- back-tier
diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml
index ae6ffd7..0d5c635 100644
--- a/prometheus/prometheus.yml
+++ b/prometheus/prometheus.yml
@@ -22,7 +22,7 @@ scrape_configs:
- job_name: 'prometheus'
# Override the global default and scrape targets from this job every 5 seconds.
- scrape_interval: 5s
+ scrape_interval: 30s
static_configs:
- targets: ['localhost:9090']
@@ -31,7 +31,7 @@ scrape_configs:
- job_name: 'metrics'
# Override the global default and scrape targets from this job every 5 seconds.
- scrape_interval: 5s
+ scrape_interval: 30s
static_configs:
- targets: ['metrics:9171']
Quarkus Dashboard
- Grafana dashboard definition: GitHubStats-Quarkus-3x3-plus-1x2.json
- Dashboard installation steps: https://github.com/vegasbrianc/github-monitoring#manual-install-dashboard
GitHub exporter details
- Available metrics: https://github.com/infinityworks/github-exporter/blob/master/METRICS.md
- Number of API queries remaining in the current window: http://localhost:9090/graph?g0.range_input=1h&g0.expr=github_rate_remaining&g0.tab=0
- Exposed metrics: http://localhost:9171/metrics