diff --git a/apis/swagger.yml b/apis/swagger.yml index 70ecea0f9..8e3b9334b 100644 --- a/apis/swagger.yml +++ b/apis/swagger.yml @@ -58,6 +58,17 @@ paths: 500: $ref: "#/responses/500ErrorResponse" + /metrics: + get: + summary: "Get Prometheus metrics" + description: "Get Prometheus metrics" + responses: + 200: + description: "no error" + schema: + type: "string" + example: "go_goroutines 1" + /peer/registry: post: summary: "registry a task" diff --git a/cmd/dfdaemon/app/version.go b/cmd/dfdaemon/app/version.go index ebb44902d..17dc57eba 100644 --- a/cmd/dfdaemon/app/version.go +++ b/cmd/dfdaemon/app/version.go @@ -31,7 +31,7 @@ func init() { // versionExample shows examples in version command, and is used in auto-generated cli docs. func versionExample() string { - return `dfdaemon, version 0.4.1 + return `dfdaemon version 0.4.1 Git commit: 6fd5c8f Build date: 20190717-15:57:52 Go version: go1.12.6 diff --git a/cmd/dfget/app/version.go b/cmd/dfget/app/version.go index b00a0d09d..408f487c2 100644 --- a/cmd/dfget/app/version.go +++ b/cmd/dfget/app/version.go @@ -47,7 +47,7 @@ func init() { // versionExample shows examples in version command, and is used in auto-generated cli docs. func versionExample() string { - return `dfget, version 0.4.1 + return `dfget version 0.4.1 Git commit: 6fd5c8f Build date: 20190717-15:57:52 Go version: go1.12.6 diff --git a/cmd/supernode/app/version.go b/cmd/supernode/app/version.go index a83ab0e99..91ab4be3a 100644 --- a/cmd/supernode/app/version.go +++ b/cmd/supernode/app/version.go @@ -31,7 +31,7 @@ func init() { // versionExample shows examples in version command, and is used in auto-generated cli docs. func versionExample() string { - return `supernode, version 0.4.1 + return `supernode version 0.4.1 Git commit: 6fd5c8f Build date: 20190717-15:57:52 Go version: go1.12.6 diff --git a/version/version.go b/version/version.go index 3e0bd1997..db83e767e 100644 --- a/version/version.go +++ b/version/version.go @@ -78,7 +78,7 @@ func init() { // versionInfoTmpl contains the template used by Info. var versionInfoTmpl = ` -{{.program}}, version {{.version}} +{{.program}} version {{.version}} Git commit: {{.revision}} Build date: {{.buildDate}} Go version: {{.goVersion}}