From 188dedc712c70c3cc078e71d01d26f12a8f79243 Mon Sep 17 00:00:00 2001 From: MangelRyujin Date: Fri, 11 Sep 2026 13:12:16 -0500 Subject: [PATCH] feat(server): expose monitoring fields on environment services Include appName, replicas, composeType, server IP, and metricsConfig so project monitoring can resolve containers and metrics endpoints. Co-authored-by: Cursor --- packages/server/src/services/environment.ts | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/packages/server/src/services/environment.ts b/packages/server/src/services/environment.ts index c4c08ac02..0b5680817 100644 --- a/packages/server/src/services/environment.ts +++ b/packages/server/src/services/environment.ts @@ -49,12 +49,16 @@ export const findEnvironmentById = async (environmentId: string) => { columns: { name: true, serverId: true, + ipAddress: true, + metricsConfig: true, }, }, }, columns: { name: true, applicationId: true, + appName: true, + replicas: true, createdAt: true, applicationStatus: true, description: true, @@ -68,12 +72,16 @@ export const findEnvironmentById = async (environmentId: string) => { columns: { name: true, serverId: true, + ipAddress: true, + metricsConfig: true, }, }, }, columns: { mariadbId: true, name: true, + appName: true, + replicas: true, createdAt: true, applicationStatus: true, description: true, @@ -86,12 +94,16 @@ export const findEnvironmentById = async (environmentId: string) => { columns: { name: true, serverId: true, + ipAddress: true, + metricsConfig: true, }, }, }, columns: { mongoId: true, name: true, + appName: true, + replicas: true, createdAt: true, applicationStatus: true, description: true, @@ -104,12 +116,16 @@ export const findEnvironmentById = async (environmentId: string) => { columns: { name: true, serverId: true, + ipAddress: true, + metricsConfig: true, }, }, }, columns: { mysqlId: true, name: true, + appName: true, + replicas: true, createdAt: true, applicationStatus: true, description: true, @@ -122,12 +138,16 @@ export const findEnvironmentById = async (environmentId: string) => { columns: { name: true, serverId: true, + ipAddress: true, + metricsConfig: true, }, }, }, columns: { postgresId: true, name: true, + appName: true, + replicas: true, description: true, createdAt: true, applicationStatus: true, @@ -140,12 +160,16 @@ export const findEnvironmentById = async (environmentId: string) => { columns: { name: true, serverId: true, + ipAddress: true, + metricsConfig: true, }, }, }, columns: { redisId: true, name: true, + appName: true, + replicas: true, createdAt: true, applicationStatus: true, description: true, @@ -158,12 +182,16 @@ export const findEnvironmentById = async (environmentId: string) => { columns: { name: true, serverId: true, + ipAddress: true, + metricsConfig: true, }, }, }, columns: { composeId: true, name: true, + appName: true, + composeType: true, createdAt: true, composeStatus: true, description: true, @@ -177,12 +205,16 @@ export const findEnvironmentById = async (environmentId: string) => { columns: { name: true, serverId: true, + ipAddress: true, + metricsConfig: true, }, }, }, columns: { libsqlId: true, name: true, + appName: true, + replicas: true, createdAt: true, applicationStatus: true, description: true,