Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/half-shot/project-stats-exporter
Export stats from various sources (GitHub) to track project performance.
https://github.com/half-shot/project-stats-exporter
Last synced: 26 days ago
JSON representation
Export stats from various sources (GitHub) to track project performance.
- Host: GitHub
- URL: https://github.com/half-shot/project-stats-exporter
- Owner: Half-Shot
- Created: 2022-05-12T23:57:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-27T18:05:36.000Z (over 2 years ago)
- Last Synced: 2024-12-09T20:08:54.210Z (about 1 month ago)
- Language: TypeScript
- Size: 115 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# project-stats-exporter
Prometheus exporter that tracks details about GitHub objects. Typically, this is used to measure progress against specific goals
for a team such as "how many issues labelled with T-Defect were closed in the last 7 days".## Configuration
The project is configured via environment variables, documented below:
### Required
These must be defined for the service to start.
- `EXPORTER_REPOS` is a comma seperated list repositories to track. E.g. (`matrix-org/synapse,matrix-org/project-stats-exporter`)
- `EXPORTER_LABELS` is a comma seperated list of labels to track. E.g. (`bug,feature,documentation`)
- `EXPORTER_TOKEN` is the GitHub personal access token used to fetch the data.### Optional
- `EXPORTER_PORT` sets the port that the exporter listens on (default: `8080`).
- `EXPORTER_HOST` sets the hostname that the exporter listens on (default: `127.0.0.1`)
- `EXPROTER_TEAM` sets the GitHub team (within an org) that can be used to filter whether a given issue/PR is from the community (e.g. `matrix-org/bridges`). If undefined, no filtering is done.
- `EXPORTER_PERIOD` is the number of minutes between refreshes of data for repositories (default: `60`). Repositories are not all checked at once, so a period of 60 minutes across 4 repositories would check one repository every 15 minutes.
- `EXPORTER_BEARER_TOKEN` is a token to authenticate requests with. If not provided, the `/metrics` endpoint is not secured.