Skip to content

Latest commit

 

History

History

ghe-with-simple-dashboards

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Prometheus GitHub Exporter

Exposes basic metrics for your repositories from the GitHub API, to a Prometheus compatible endpoint.

Docker compose

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

Try it

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

Stop services

COMPOSE_EXPERIMENTAL_GIT_REMOTE=true docker compose down