Add GIT_COMMIT_TIMESTAMP
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Lauri Võsandi 2022-07-11 17:00:23 +03:00
parent 85c9adfe74
commit 188de3a192

View File

@ -101,11 +101,13 @@ gauge_queue_frames = Gauge(
"Numer of frames in a queue",
["stage"])
gauge_build_info = Gauge(
"camtiler_build_info",
"docker_build_info",
"Build info",
["git_hash"])
["git_commit", "git_commit_timestamp"])
gauge_build_info.labels(os.getenv("GIT_COMMIT", "null")).set(1)
gauge_build_info.labels(
os.getenv("GIT_COMMIT", "null"),
os.getenv("GIT_COMMIT_TIMESTAMP", "null")).set(1)
# Reset some gauges
gauge_queue_frames.labels("download").set(0)