mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Fix totalCostInUSD calculation and update Otel Collector port
This commit is contained in:
parent
018d3b7fcd
commit
2d2f2b0521
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user