prometheus: convert zrepl_version_daemon to zrepl_start_time metric

closes https://github.com/zrepl/zrepl/pull/556
fixes #553
This commit is contained in:
Lapo Luchini
2022-01-12 16:52:58 +01:00
committed by Christian Schwarz
parent 0a6840273a
commit 4a27cc63a8
3 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -249,7 +249,7 @@
"stack": true,
"steppedLine": false,
"targets": [{
"expr": "zrepl_version_daemon{job='$prom_job_name'}",
"expr": "sgn(zrepl_start_time{job='$prom_job_name'})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,