Blog

Feb 25, 2026

How I Built a 1 GB Observability Stack for My Go Startup Using Prometheus, Loki, and Grafana

I needed observability for my Go Telegram bot running on a free VPS with only 4 GB of RAM, where the app already used ~2 GB. After comparing tools by RAM usage, I chose Prometheus (metrics), Loki (logs), Promtail (log collector), and Grafana (dashboards) — the entire stack fits in ~1 GB. The article covers structured logging with slog, exposing metrics via promauto, Docker Compose configs with memory limits, Loki/Promtail/Prometheus setup, and building Grafana dashboards stored as JSON in the repo.

Source: HackerNoon →


Share

BTCBTC
$70,693.00
0.7%
ETHETH
$2,150.53
1.11%
USDTUSDT
$1.000
0%
XRPXRP
$1.45
1.05%
BNBBNB
$643.05
0.38%
USDCUSDC
$1.000
0.01%
SOLSOL
$89.42
0.53%
TRXTRX
$0.306
1.04%
FIGR_HELOCFIGR_HELOC
$1.00
2.26%
DOGEDOGE
$0.0944
0.3%
WBTWBT
$55.37
0.99%
USDSUSDS
$1.000
0.01%
ADAADA
$0.269
0.24%
HYPEHYPE
$39.54
0.58%
BCHBCH
$467.83
2.27%
LEOLEO
$9.20
0.18%
LINKLINK
$9.11
0.17%
XMRXMR
$346.38
0.69%
USDEUSDE
$1.000
0.01%
XLMXLM
$0.167
0.04%