metrics: store app metrics by appid and not container id

This commit is contained in:
Girish Ramakrishnan
2025-07-04 10:05:07 +02:00
parent 89c0d5763c
commit 82ea2cd86d

View File

@@ -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}`);
}