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 16:51:43 +02:00
parent cae6a1c3ac
commit e77aea4c44
12 changed files with 116 additions and 10 deletions
+2
View File
@@ -129,6 +129,8 @@ func Server(cfg *config.Config) *cli.Command {
defer cancel()
metrics.BuildInfo.WithLabelValues(cfg.Service.Version).Set(1)
{
server := grpc.Server(
grpc.Logger(logger),