mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-26 09:28:34 +03:00
Remove string from metrics
This commit is contained in:
@@ -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)}`,
|
||||
|
||||
Reference in New Issue
Block a user