{"id":15655282,"url":"https://github.com/caarlos0/github_releases_exporter","last_synced_at":"2025-05-04T06:56:22.764Z","repository":{"id":49903898,"uuid":"135378314","full_name":"caarlos0/github_releases_exporter","owner":"caarlos0","description":"Exports GitHub release metrics to the Prometheus format","archived":false,"fork":false,"pushed_at":"2024-03-05T11:56:43.000Z","size":384,"stargazers_count":26,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T21:33:06.207Z","etag":null,"topics":["github-api","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caarlos0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["caarlos0"]}},"created_at":"2018-05-30T02:39:39.000Z","updated_at":"2025-02-14T10:06:30.000Z","dependencies_parsed_at":"2024-06-20T17:01:22.298Z","dependency_job_id":"4036c899-ed3b-4694-aadd-c469b6a38929","html_url":"https://github.com/caarlos0/github_releases_exporter","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Fgithub_releases_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Fgithub_releases_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Fgithub_releases_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Fgithub_releases_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caarlos0","download_url":"https://codeload.github.com/caarlos0/github_releases_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252134223,"owners_count":21699675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-api","prometheus-exporter"],"created_at":"2024-10-03T12:57:39.571Z","updated_at":"2025-05-03T02:36:10.368Z","avatar_url":"https://github.com/caarlos0.png","language":"Go","funding_links":["https://github.com/sponsors/caarlos0"],"categories":[],"sub_categories":[],"readme":"# github_releases_exporter\n\nExports GitHub release metrics to the Prometheus format.\n\n[![Release](https://img.shields.io/github/release/caarlos0/github_releases_exporter.svg?style=flat-square)](https://github.com/caarlos0/github_releases_exporter/releases/latest)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://travis-ci.com/caarlos0/github_releases_exporter.svg?branch=master)](https://travis-ci.com/caarlos0/github_releases_exporter)\n[![Coverage Status](https://img.shields.io/codecov/c/github/caarlos0/github_releases_exporter/master.svg?style=flat-square)](https://codecov.io/gh/caarlos0/github_releases_exporter)\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/caarlos0/github_releases_exporter)\n[![Go Report Card](https://goreportcard.com/badge/github.com/caarlos0/github_releases_exporter?style=flat-square)](https://goreportcard.com/report/github.com/caarlos0/github_releases_exporter)\n[![SayThanks.io](https://img.shields.io/badge/SayThanks.io-%E2%98%BC-1EAEDB.svg?style=flat-square)](https://saythanks.io/to/caarlos0)\n[![Powered By: GoReleaser](https://img.shields.io/badge/powered%20by-goreleaser-green.svg?style=flat-square)](https://github.com/goreleaser)\n\n## Running\n\n```console\n./github_releases_exporter\n```\n\nOr with docker:\n\n```console\ndocker run -p 127.0.0.1:9222:9222 caarlos0/github_releases_exporter\n```\n\n## Configuration\n\nYou can set it up on docker compose like:\n\n```yaml\nversion: '3'\nservices:\n  releases:\n    image: caarlos0/github_releases_exporter:v1\n    restart: always\n    volumes:\n    - /path/to/releases.yml:/etc/releases.yml:ro\n    command:\n    - '--config.file=/etc/releases.yml'\n    ports:\n    - 127.0.0.1:9222:9222\n    env_file:\n    - .env\n```\n\nThe `releases.yml` file should look like this:\n\n```yaml\nrepositories:\n- goreleaser/goreleaser\n- caarlos0/github_releases_exporter\n```\n\nOn the prometheus settings, add the releases job like this:\n\n```yaml\n- job_name: 'releases'\n  static_configs:\n  - targets: ['releases:9222']\n```\n\nAnd you are done!\n\n## Configuration Reload\n\nYou can reload the configuration at any time by sending a `SIGHUP` to the\nprocess.\n\n## Grafana Dashboard\n\nI have a dashvboard like this:\n\n![](https://grafana.com/api/dashboards/6328/images/4078/image)\n\nYou can get it from [the grafana website](https://grafana.com/dashboards/6328)\nor just import the dashboard `6328`.\n\n## Building locally\n\nInstall the needed tooling and libs:\n\n```console\nmake setup\n```\n\nRun with:\n\n```console\ngo run main.go\n```\n\nRun tests with:\n\n```console\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaarlos0%2Fgithub_releases_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaarlos0%2Fgithub_releases_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaarlos0%2Fgithub_releases_exporter/lists"}