Portal Community

Log Volume Estimation (Loki)

Log volume is the dominant storage cost in most BizFirstGO deployments. The primary driver is the number of node executions per day, since each node produces structured log entries at start, end, and on any exception.

ScenarioExecutions/DayAvg Nodes/WorkflowLog Volume/Day30-Day Storage
Development1005~500 MB~15 GB
Small production1,0008~4 GB~120 GB
Medium production10,00010~40 GB~1.2 TB
Large production100,00012~400 GB~12 TB
Loki Compression Factor

Loki compresses log chunks with Snappy compression. JSON-structured logs from BizFirstGO typically achieve 5–8x compression. The storage figures above are after compression. Raw log volume before compression is approximately 5–8x higher.

Metric Storage Estimation (Prometheus)

Prometheus storage is driven by metric cardinality — the total number of unique time series (metric name + label combinations). BizFirstGO's default metric set is moderate cardinality.

Metric FamilySeries Count (estimate)Note
bizfirst_workflow_executions_totalN_tenants × 3 statuses3 per tenant
bizfirst_node_execution_duration_secondsN_tenants × N_node_types × 12 histogram buckets~120 per tenant with 10 node types
bizfirst_hil_pending_countN_tenants1 per tenant
Infrastructure (Node Exporter)~800 per hostFixed overhead
Infrastructure (cAdvisor)~200 per containerScales with container count

Prometheus requires approximately 2 bytes per sample on disk. At 15-second scrape interval, each series generates 5,760 samples/day. For 10,000 series and 90-day retention:

10,000 series × 5,760 samples/day × 90 days × 2 bytes = ~10 GB

Trace Storage Estimation (Tempo)

Trace storage is driven by trace volume and average span size. Tempo compresses trace data efficiently using Parquet format.

ScenarioTraces/DayAvg Spans/TraceTrace Storage/Day7-Day Storage
Development1,00010~50 MB~350 MB
Small production10,00015~750 MB~5 GB
Medium production100,00020~10 GB~70 GB
Large production1,000,00020~100 GB~700 GB

Component Resource Requirements

ComponentDev CPUDev RAMProd CPUProd RAMProd Disk
OTel Collector0.5 vCPU256 MB2–4 vCPU1–2 GBNone (stateless)
Loki0.5 vCPU512 MB4–8 vCPU8–16 GBLocal WAL only; data in S3
Prometheus0.5 vCPU512 MB2–4 vCPU8–16 GB50–500 GB SSD
Tempo0.5 vCPU512 MB4–8 vCPU8–16 GBLocal WAL only; data in S3
Grafana0.25 vCPU256 MB1–2 vCPU1–2 GB10 GB (SQLite/PostgreSQL)
Alertmanager0.1 vCPU64 MB0.5 vCPU256 MB1 GB

Cost Reduction Strategies