Skip to content

Add numerical app version metric #18454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Add numerical app version metric #18454

wants to merge 2 commits into from

Conversation

jonpalmisc
Copy link

  • Add NumAppVer variable to store the app version numerically
  • Add new "version" metric, collector for Prometheus

Resolves: #18061

- Add `NumAppVer` variable to store the app version numerically
- Add new "version" metric, collector for Prometheus

Resolves: #18061
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 29, 2022
@jonpalmisc
Copy link
Author

jonpalmisc commented Jan 29, 2022

Maintainers: Unfortunately, I've been forced to make this PR as part of an academic assignment. If this does not look like an acceptable solution to this issue, please just close the PR. I don't want to waste your time. On the other hand, if this does look to be on the right track, I'm willing to make any minor changes that are requested.

Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well as pointed out at #18454 (comment) would be the only hacky working solution - but prometheus do accept String metrics so we can just pas semversion as string - through add gitea version prometheus metrics makes no sence to me

@jonpalmisc jonpalmisc closed this Mar 4, 2022
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add version string to metrics
5 participants