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 <cursoragent@cursor.com>
This commit is contained in:
MangelRyujin 2026-09-11 13:12:16 -05:00
parent d7884c7ce9
commit 188dedc712

View File

@ -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,