Skip to content

Conversation

@PythonGermany
Copy link
Contributor

@PythonGermany PythonGermany commented Dec 13, 2025

Summary

Add application wide build informations via

  • startup via info log
  • UI footer with link to github release page (configurable if it should be displayed)
    • TODO: Don't add link to keep it simple? -> Removed
    • TODO?: Only add link to github releases page for correct version pattern ^v\d+\.\d+\.\d+$
    • TODO?: Make link to release page configurable. If it is enabled and/or where it points to.
  • prometheus endpoint metric gatus_build_info
    • Add go_version label

Closes #833
Closes #901

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
    • Test workflows
      • Version
      • Build date
      • Commit hash/revision
    • Test docker and direct build
      • Check version with and without tag
        • via make
        • via docker
      • Check commit hash via make, docker and directly building (without setting any custom -X ldflags)
      • Check build date via make and docker and directly building (without setting any custom -X ldflags)
    • Test new ui.show-version option (make sure if it is false that the version is not embedded in the UI files) -> Version placeholder in index.html is empty if set to false
  • Updated documentation in README.md, if applicable.

@PythonGermany PythonGermany changed the title Add build information feat: Add build information Dec 13, 2025
@PythonGermany PythonGermany marked this pull request as ready for review December 13, 2025 17:24
@PythonGermany
Copy link
Contributor Author

Currently implemented ways to get the build info and info types available:

  • Logs: Version, Revision, Revision date
  • UI: Version (configurable)
  • Prometheus metrics endpoint: Version, Revision, Revision date, Go version

@PythonGermany
Copy link
Contributor Author

@TwiN Would exposing the build info via the API be of use and a wanted addition? Or would that be redundant/irrelevant/unwanted since the API already has it's own version?

@TwiN
Copy link
Owner

TwiN commented Dec 19, 2025

Exposing it via the UI is enough for now.

At some point, I imagine we'll also have to expose it via cli (gatus version or gatus --version), but there's no need to implement this right now.

@TwiN TwiN mentioned this pull request Dec 20, 2025
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.

Provide a way to know which version of Gatus the binay is Show version number on page

3 participants