cmd/stdiscorv: Expose build info in metrics

This commit is contained in:
Jakob Borg
2023-11-14 09:31:53 +01:00
parent f3bd4d71de
commit aaee0c126b
2 changed files with 13 additions and 1 deletions
+3
View File
@@ -14,6 +14,7 @@ import (
"net"
"net/http"
"os"
"runtime"
"strings"
"time"
@@ -102,6 +103,8 @@ func main() {
return
}
buildInfo.WithLabelValues(build.Version, runtime.Version(), build.User, build.Date.UTC().Format("2006-01-02T15:04:05Z")).Set(1)
if largeDB {
levelDBOptions.BlockCacheCapacity = 64 << 20
levelDBOptions.BlockSize = 64 << 10