GitXplorerGitXplorer
c

github_releases_exporter

public
26 stars
5 forks
0 issues

Commits

List of commits on branch master.
Verified
b9187c8cd6952bd8f51bb70ef11acc647fe2ead5

chore(deps): bump golang.org/x/oauth2 from 0.9.0 to 0.10.0 (#55)

ddependabot[bot] committed 2 years ago
Verified
bb4e5d957ac603cf0a35a5c8deefd7673fc89e76

chore(deps): bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 (#54)

ddependabot[bot] committed 2 years ago
Verified
05b3ecd8b9786d931d1c4419c9f8c76fd32ed1f2

chore(deps): bump golang.org/x/oauth2 (#53)

ddependabot[bot] committed 2 years ago
Verified
7989e727aa27d4d4e0388c333e65f634b5127548

feart: only monitor new releases (#49)

aalexqrid committed 2 years ago
Verified
df53b3d936b43efc5432a6a3ea528d6aa334d5d6

fix: update x/net

ccaarlos0 committed 2 years ago
Verified
8de4ed7d45f3afd84d269322dab22a463c410413

chore(deps): bump github.com/prometheus/client_golang from 1.10.0 to 1.11.0 (#47)

ddependabot[bot] committed 4 years ago

README

The README file for this repository.

github_releases_exporter

Exports GitHub release metrics to the Prometheus format.

Release Software License Build Status Coverage Status Go Doc Go Report Card SayThanks.io Powered By: GoReleaser

Running

./github_releases_exporter

Or with docker:

docker run -p 127.0.0.1:9222:9222 caarlos0/github_releases_exporter

Configuration

You can set it up on docker compose like:

version: '3'
services:
  releases:
    image: caarlos0/github_releases_exporter:v1
    restart: always
    volumes:
    - /path/to/releases.yml:/etc/releases.yml:ro
    command:
    - '--config.file=/etc/releases.yml'
    ports:
    - 127.0.0.1:9222:9222
    env_file:
    - .env

The releases.yml file should look like this:

repositories:
- goreleaser/goreleaser
- caarlos0/github_releases_exporter

On the prometheus settings, add the releases job like this:

- job_name: 'releases'
  static_configs:
  - targets: ['releases:9222']

And you are done!

Configuration Reload

You can reload the configuration at any time by sending a SIGHUP to the process.

Grafana Dashboard

I have a dashvboard like this:

You can get it from the grafana website or just import the dashboard 6328.

Building locally

Install the needed tooling and libs:

make setup

Run with:

go run main.go

Run tests with:

make test