Skip to content

Add github_repo_releases metric - #143

Open
hairyhenderson wants to merge 1 commit into
githubexporter:masterfrom
hairyhenderson:repo-releases-count
Open

hairyhenderson wants to merge 1 commit into
githubexporter:masterfrom
hairyhenderson:repo-releases-count

Conversation

@hairyhenderson

Copy link
Copy Markdown
Contributor

The exporter reports each release for each repository, but only through github_repo_release_downloads, which has one series per release asset. A release without downloadable assets produces no series at all.

This adds a github_repo_releases gauge that reports how many releases each repository has.

Related to #1, which asked for a releases metric (among others). This covers releases only however, so this doesn't fix that issue.

Report the number of releases per repository. Releases are already
fetched for github_repo_release_downloads, but that metric is per asset,
so releases without downloadable assets aren't visible at all.

The metric is only emitted when FETCH_REPO_RELEASES_ENABLED is true, so a
disabled fetch isn't reported as zero releases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant