Skip to content

FinOps Rail

Financial operations cost tracking, optimization, and resource usage analytics for the platform.

The FinOps rail provides visibility and control over the operational costs of running Islamic finance infrastructure. It tracks resource consumption across compute, storage, API calls, and third-party service usage at the tenant level, enabling accurate cost allocation and usage-based billing.

For multi-tenant SaaS deployments, the rail meters every API call, ledger transaction, search query, and storage operation, attributing costs to the originating tenant and workspace. This data feeds into the Billing rail for invoice generation and into management dashboards for cost optimization decisions.

The rail also monitors infrastructure spending across cloud providers (AWS, Cloudflare), identifying underutilized resources, cost anomalies, and optimization opportunities. Budget alerts notify administrators when spending approaches or exceeds defined thresholds, and automated recommendations suggest right-sizing actions.

Cost centers can be organized by tenant, workspace, rail, or custom dimensions, supporting the allocation models required by enterprise customers for internal chargeback and showback reporting.

GET /v1/rails/finops/costs/summary
const summary = await iof.finops.getCostSummary({
period: "2024-01",
group_by: "tenant",
currency: "USD",
});

Response:

{
"period": "2024-01",
"total_cost": 12450.8,
"currency": "USD",
"breakdown": [
{
"tenant_id": "ten_001",
"tenant_name": "Al-Baraka Bank",
"cost": 8200.5,
"api_calls": 1250000,
"storage_gb": 45.2,
"ledger_transactions": 89000
},
{
"tenant_id": "ten_002",
"tenant_name": "Amanah Capital",
"cost": 4250.3,
"api_calls": 620000,
"storage_gb": 18.7,
"ledger_transactions": 34000
}
]
}
GET /v1/rails/finops/usage
GET /v1/rails/finops/cost-centers
POST /v1/rails/finops/cost-centers
const center = await iof.finops.createCostCenter({
name: "Trade Finance Operations",
type: "rail",
rail: "trade-finance",
budget_monthly: 5000,
currency: "USD",
alert_threshold_pct: 0.8,
owner_id: "user_ops_lead_001",
});
POST /v1/rails/finops/budgets
GET /v1/rails/finops/budgets/:id
GET /v1/rails/finops/recommendations
POST /v1/rails/finops/reports/export
DimensionDescription
tenantCost per tenant
workspaceCost per workspace within a tenant
railCost per rail (murabaha, payments, etc)
resourceCost per infrastructure resource type
providerCost per cloud provider (AWS, Cloudflare)
ResourceUnitDescription
api_callsper requestAPI endpoint invocations
ledger_transactionsper transactionLedger entries created
search_queriesper querySearch operations
storageper GB-monthDocument and data storage
computeper vCPU-secondBackground job processing
bandwidthper GBData transfer out
StatusDescription
ON_TRACKSpending within budget
WARNINGSpending approaching threshold
EXCEEDEDBudget exceeded
CRITICALSpending significantly over budget
  • Billing Rail — usage data feeds into tenant invoices
  • Analytics Rail — cost trends and forecasting dashboards
  • Observability Rail — correlate cost spikes with traffic patterns
  • Reporting Rail — periodic cost allocation reports for tenants
  • Limits Rail — enforce rate limits based on plan tiers
EventDescription
finops.budget.warningBudget approaching threshold
finops.budget.exceededBudget exceeded
finops.anomaly.detectedUnusual cost spike detected
finops.report.generatedCost report ready for download
finops.recommendation.availableNew optimization recommendation