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 13:52:03 +02:00
parent ff8fc23ce5
commit be71b844f2
10 changed files with 119 additions and 14 deletions

View File

@@ -135,6 +135,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),