greptimedb icon indicating copy to clipboard operation
greptimedb copied to clipboard

Incorrect `version` in `greptime_app_version`

Open zyy17 opened this issue 6 months ago • 14 comments

What type of bug is this?

Other

What subsystems are affected?

Other

Minimal reproduce step

Access the /metrics endpoint when the DB is ready:

bash-5.1# curl -q  http://10.244.1.27:4000/metrics | grep greptime_app
greptime_app_version app version
# TYPE greptime_app_version gauge
greptime_app_version{short_version="0.9.1",version="-fe1cfbf2"} 1

The version should be fe1cfbf2, not -fe1cfbf2.

What did you expect to see?

We should get the correct version without the prefix -.

What did you see instead?

Get the version with prefix -.

What operating system did you use?

Linux

What version of GreptimeDB did you use?

v0.9.1

Relevant log output and stack trace

No response

zyy17 avatar Aug 08 '24 14:08 zyy17