Portal Community

The Four-Component Stack

Grafana Loki

Log aggregation. Stores structured JSON logs from all BizFirstGO services. Queryable with LogQL. Cost-efficient: indexes only labels, not log content.

Prometheus

Metrics collection. Scrapes /metrics endpoints every 15 seconds. Time-series database (TSDB). Queryable with PromQL. Powers alerts via Alertmanager.

Grafana Tempo

Distributed tracing. Ingests traces via OTLP. Stores in object storage. Queryable by TraceId or attribute search. Links to logs and metrics.

Grafana

Unified visualization. Connects to all three as data sources. Pre-built dashboards for BizFirstGO. Alert management. Single login for all signals.

Why This Combination?

RequirementAlternative ConsideredWhy Loki Stack
Log aggregationElasticsearch / OpenSearchLoki is 10x cheaper at scale; does not require full-text index; label-based query is sufficient for BizFirstGO's structured logs
MetricsInfluxDB, DatadogPrometheus is the industry standard; rich ecosystem; PromQL is widely understood; open-source
Distributed tracingJaeger, Zipkin, Datadog APMTempo is OpenTelemetry-native; object storage backend (cheapest); native Grafana integration; no index database required
Unified UIKibana, separate per-component UIsGrafana connects to all three; single login; cross-signal correlation in one tool; pre-built dashboards for BizFirstGO

Component Interoperability

The four components interoperate via defined integration points. Understanding these links is key to the cross-signal correlation that makes debugging efficient:

Suitable Deployment Scale

ScaleWorkflow Executions/DayDeployment ModeNotes
Development< 1,000Docker Compose (single node)SQLite for Grafana; local storage for all
Small production1,000 – 20,000Docker Compose or single-node KubernetesS3 for Loki + Tempo; Prometheus on SSD
Medium production20,000 – 200,000Kubernetes with HelmDefault architecture still sufficient; may need Loki distributed
Large production200,000+Enterprise (see Guide11)Loki microservices; Thanos; Grafana Enterprise
PaaS Alternative

If you prefer not to self-host this stack, all four components are available as managed services via Grafana Cloud, Azure Monitor, or AWS-native equivalents. The BizFirstGO OTel SDK is configured identically regardless of whether you use self-hosted or managed backends — only the OTel Collector exporter configuration changes. See Guide12: PaaS Options.