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
$81,112.00
0.18%
ETHETH
$2,301.92
0.45%
USDTUSDT
$1.000
0.01%
BNBBNB
$679.61
2.42%
XRPXRP
$1.46
0.31%
USDCUSDC
$1.00
0.03%
SOLSOL
$95.40
1.16%
TRXTRX
$0.349
0.15%
FIGR_HELOCFIGR_HELOC
$1.04
0.73%
DOGEDOGE
$0.112
1.78%
WBTWBT
$59.56
0.26%
USDSUSDS
$1.000
0.01%
ADAADA
$0.274
1.49%
HYPEHYPE
$40.22
2.59%
ZECZEC
$558.17
0.15%
LEOLEO
$10.00
2.25%
BCHBCH
$442.12
0.88%
XMRXMR
$413.38
0.7%
LINKLINK
$10.45
0.49%
TONTON
$2.27
6.15%