diff --git a/server/src/billing/billing.service.ts b/server/src/billing/billing.service.ts index e269337925..377066fb49 100644 --- a/server/src/billing/billing.service.ts +++ b/server/src/billing/billing.service.ts @@ -228,12 +228,12 @@ export class BillingService { }) const cpuTask = prom - .instantQuery(`laf:billing:cpu{appid=${app.appid}}`, time) + .instantQuery(`laf:billing:cpu{appid="${app.appid}"}`, time) .then((res) => res.result[0]) .then((res) => Number(res.value.value)) const memoryTask = prom - .instantQuery(`laf:billing:memory{appid=${app.appid}`, time) + .instantQuery(`laf:billing:memory{appid="${app.appid}"}`, time) .then((res) => res.result[0]) .then((res) => Number(res.value.value))