Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

wal-g: Use "start_time" field, not "time" which is S3 modified-at.

Alex Vandiver60ce5e195518
diff --git a/puppet/zulip/files/postgresql/wal-g-exporter b/puppet/zulip/files/postgresql/wal-g-exporter
index d92c3c982bd..7d422ad057b 100755
--- a/puppet/zulip/files/postgresql/wal-g-exporter
+++ b/puppet/zulip/files/postgresql/wal-g-exporter
@@ -106,7 +106,7 @@ class WalGPrometheusServer(BaseHTTPRequestHandler):
)
if len(data) > 0:
- data.sort(key=lambda e: e["time"], reverse=True)
+ data.sort(key=lambda e: e["start_time"], reverse=True)
latest = data[0]
labels = {
"host": latest["hostname"],