homelab

Full Monitoring Stack: Zabbix, Prometheus, Grafana and Loki

Self-hosted monitoring stack in LXC containers: Zabbix 7.0 (SNMP), Prometheus, Grafana and Loki with Grafana Alloy for centralised log collection.

Context

To operate and maintain the homelab professionally, I deployed a complete monitoring stack in Debian 12 LXC containers on Proxmox. The goal: full visibility over network equipment, hypervisors and applications, with centralised log collection — comparable to a production environment.

Monitoring architecture

Network devices (SNMP) ──→ Zabbix 7.0.26 (LXC 105) ──→ Dashboards / alerts
MariaDB (LXC 104) ──────→ Zabbix DB backend
PVE-01/02 hypervisors ──→ node_exporter :9100   ──→ Prometheus 3.5.3 (LXC 106)
                     └──→ pve_exporter :9221    ──→        ↓
HTTP/TCP/ICMP probes ───→ blackbox_exporter :9115 → Grafana 13.0.1 (LXC 108)
journald logs PVE-01/02 → Grafana Alloy 1.16.1  ──→ Loki 3.6.7 (LXC 107) → Grafana

Dedicated LXC containers (VLAN 10 MGMT)

LXC CTID VLAN Service Version
lxc-mariadb-01 104 VLAN 10 MGMT Zabbix database MariaDB
lxc-zabbix-01 105 VLAN 10 MGMT Zabbix Server + Frontend 7.0.26
lxc-prometheus-01 106 VLAN 10 MGMT Prometheus 3.5.3 LTS
lxc-loki-01 107 VLAN 10 MGMT Loki 3.6.7
lxc-grafana-01 108 VLAN 10 MGMT Grafana 13.0.1

What I did

Zabbix 7.0.26 — SNMP network monitoring

Prometheus 3.5.3 — hypervisor and service metrics

Grafana 13.0.1 — unified visualisation

Loki 3.6.7 + Grafana Alloy 1.16.1 — log centralisation

Skills covered

This project covers infrastructure monitoring and operations (B2.4), IT asset management via Zabbix auto-discovery (B1.1), availability and integrity assurance through centralised logs (B3.4) and network anomaly detection via Prometheus blackbox probes (B3.5).