Add revision to version string (#3147)

Since the removal of `build.sh`, we don't include any information about
the revision Dendrite was build from. Since go1.18, the revision a
binary was build from is automatically included, so we can try to get
that instead.

This also adds a `dendrite_up` metric showing the current version
(`dendrite_up{version="0.13.1+c796f20"} 1`)

Closes #2993
This commit is contained in:
Till 2023-07-11 13:56:25 +02:00 committed by GitHub
parent 69b2069dea
commit 99f94fc735
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 5 deletions

View file

@ -1,3 +1,2 @@
bin
*.wasm
.git
*.wasm