add version command and add build information to metrics

Signed-off-by: David Christofas <dchristofas@owncloud.com>
This commit is contained in:
David Christofas
2020-09-25 18:04:38 +02:00
parent cae6a1c3ac
commit 8752d447c7
12 changed files with 168 additions and 11 deletions
+2
View File
@@ -131,6 +131,8 @@ func Server(cfg *config.Config) *cli.Command {
defer cancel()
metrics.BuildInfo.WithLabelValues(cfg.Service.Version).Set(1)
{
server, err := http.Server(
http.Logger(logger),