feat: enhance database initialization for test isolation and add transcoder metrics

This commit is contained in:
MythEclipse
2026-05-17 18:24:10 +07:00
parent 4931e6d1ca
commit b8a6f40b1b
4 changed files with 134 additions and 18 deletions
+11
View File
@@ -53,6 +53,17 @@ export const wsMessagesCounter = new Counter({
labelNames: ["message_type"],
});
// Transcoder metrics
export const transcoderRestartsCounter = new Counter({
name: "transcoder_restarts_total",
help: "Total number of transcoder restarts",
});
export const transcoderRunningGauge = new Gauge({
name: "transcoder_running",
help: "Whether a transcoder process is currently running (1/0)",
});
// HTTP metrics
export const httpRequestDurationHistogram = new Histogram({
name: "http_request_duration_seconds",