Add GIT_COMMIT_TIMESTAMP

master
Lauri Võsandi 7 months ago
parent 85c9adfe74
commit 188de3a192
  1. 8
      camdetect.py

@ -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)

Loading…
Cancel
Save