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,164.00
0.03%
ETHETH
$2,300.44
0.47%
USDTUSDT
$1.000
0.01%
BNBBNB
$678.44
2.31%
XRPXRP
$1.45
0.81%
USDCUSDC
$0.999
0.05%
SOLSOL
$95.72
0.58%
TRXTRX
$0.349
0.22%
FIGR_HELOCFIGR_HELOC
$1.04
0.73%
DOGEDOGE
$0.112
1.13%
WBTWBT
$59.59
0.03%
USDSUSDS
$1.000
0%
ADAADA
$0.274
1.47%
ZECZEC
$579.47
4.27%
HYPEHYPE
$40.38
1.37%
LEOLEO
$10.00
1.54%
BCHBCH
$443.09
0.5%
XMRXMR
$414.51
0.52%
LINKLINK
$10.45
0.34%
TONTON
$2.29
3.07%