Skip to content

Commit

Permalink
Remove string from metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Oct 30, 2024
1 parent 93f7161 commit 54e03a3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/routes/getMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`,
Expand Down

0 comments on commit 54e03a3

Please sign in to comment.