Exposes basic metrics for your repositories from the GitHub API, to a Prometheus compatible endpoint.
compose.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.grafana.com/scrape: true
image: githubexporter/github-exporter:1.3.1
environment:
- REPOS=grafana/alloy
compose.override.yaml
:
services:
# override included service grafana for dashboards pre-provisioning
grafana:
volumes:
- ./dashboards:/var/lib/grafana/dashboards/github-mixin
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
COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose down