mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Fix totalCostInUSD calculation and update Otel Collector port
This commit is contained in:
@@ -49,10 +49,10 @@ export default class TelemetryMeteredPlan extends ServerMeteredPlan {
|
||||
|
||||
for (const usageBilling of usageBillings) {
|
||||
if (
|
||||
usageBilling?.totalCostInUSD &&
|
||||
usageBilling?.totalCostInUSD > 0
|
||||
usageBilling?.totalCostInUSD?.value &&
|
||||
usageBilling?.totalCostInUSD.value > 0
|
||||
) {
|
||||
totalCostInUSD += usageBilling.totalCostInUSD;
|
||||
totalCostInUSD += usageBilling.totalCostInUSD.value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ upstream workers {
|
||||
|
||||
|
||||
upstream opentelemetry-collector {
|
||||
server ${SERVER_OTEL_COLLECTOR_HOSTNAME}:${OTEL_COLLECTOR_PORT} weight=10 max_fails=3 fail_timeout=30s;
|
||||
server ${SERVER_OTEL_COLLECTOR_HOSTNAME}:${OTEL_COLLECTOR_HTTP_PORT} weight=10 max_fails=3 fail_timeout=30s;
|
||||
}
|
||||
|
||||
# Otel Collector
|
||||
|
||||
Reference in New Issue
Block a user