Sign inSign up

helvethink/gitlab-ci-exporter

By helvethink

Updated 4 months ago

Simple Gitlab CI Exporter based on mvisioneau work.

Image
Monitoring & observability
0

4.1K

helvethink/gitlab-ci-exporter repository overview

Helvethink - Gitlab CI Exporter

PkgGoDev Go Report Card Docker Pulls Docker Stars test Coverage Status release License

Introduction

This exporter gathers various GitLab CI metrics and exposes them in a Prometheus-compatible format, enabling comprehensive monitoring of your CI pipelines.

Usage

Example Use (Docker)

You can run the exporter using Docker:

docker run -it --rm \
  -v "$(pwd)/config.yml:/etc/config.yml" \
  -p 8080:8080 \
  helvethink/gitlab-ci-exporter:latest \
  run --config /etc/config.yml

Ensure config.yml contains all necessary settings.

Docker compose
---
services:
  gitlab-ci-exporter:
    image: quay.io/helvethink/gitlab-ci-exporter:latest
    ports:
      - "8080:8080"
    environment:
      GITLAB_TOKEN: ${GCPE_GITLAB_TOKEN}
      GCPE_CONFIG: /etc/gitlab-ci-pipelines-exporter.yml
      INTERNAL_MONITORING_LISTENER_ADDRESS: tcp://127.0.0.1:8082
    volumes:
      - type: bind
        source: ./gitlab-ci-pipelines-exporter.yml
        target: /etc/gitlab-ci-pipelines-exporter.yml

  prometheus:
    image: docker.io/prom/prometheus:v3.4.1
    ports:
      - "9090:9090"
    links:
      - gitlab-ci-exporter
    volumes:
      - ./prometheus/config.yml:/etc/prometheus/prometheus.yml

  grafana:
    image: docker.io/grafana/grafana:12.0.1
    ports:
      - "3000:3000"
    environment:
      GF_AUTH_ANONYMOUS_ENABLED: 'true'
      GF_INSTALL_PLUGINS: grafana-polystat-panel,yesoreyeram-boomtable-panel
    links:
      - prometheus
    volumes:
      - ./grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/default.yml
      - ./grafana/datasources.yml:/etc/grafana/provisioning/datasources/default.yml
      - ./grafana/dashboards:/var/lib/grafana/dashboards

networks:
  default:
    driver: bridge

Tags

Repository

Tag summary

Content type

Image

Digest

sha256:e6e614eeb

Size

9.6 MB

Last updated

4 months ago

docker pull helvethink/gitlab-ci-exporter