From 82ea2cd86d749549a6fb80cd561baf6ff86b2a51 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 4 Jul 2025 10:05:07 +0200 Subject: [PATCH] metrics: store app metrics by appid and not container id --- src/metrics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metrics.js b/src/metrics.js index b9c5a9ca1..811c0d023 100644 --- a/src/metrics.js +++ b/src/metrics.js @@ -54,7 +54,7 @@ async function readContainerMetrics() { const containerNames = allAddons; for (const app of await apps.list()) { - if (app.containerId) containerNames.push(app.containerId); // containerId can be null if app is installing + if (app.containerId) containerNames.push(app.id); // containerId can be null if app is installing. metrics must be stored by appId since container id changes over time if (app.manifest.addons?.redis && app.enableRedis) containerNames.push(`redis-${app.id}`); }