Remove string from metrics

This commit is contained in:
Ajay
2024-10-30 02:32:33 -04:00
parent 93f7161724
commit 54e03a389b

View File

@@ -10,9 +10,6 @@ export async function getMetrics(req: Request, res: Response, server: Server): P
`# HELP sb_uptime Uptime of this instance`,
`# TYPE sb_uptime counter`,
`sb_uptime ${process.uptime()}`,
`# HELP sb_commit The commit hash of the running version`,
`# TYPE sb_commit gauge`,
`sb_commit ${(global as any).HEADCOMMIT ?? "unknown"}`,
`# HELP sb_db_version The version of the database`,
`# TYPE sb_db_version counter`,
`sb_db_version ${await db.prepare("get", "SELECT key, value FROM config where key = ?", ["version"]).then(e => e.value).catch(() => -1)}`,