
Infrastructure: monitoring — Zabbix or Prometheus and Grafana, and what to monitor first
🌐 Machine-translated from Russian. Show original
In this part:
Why monitor a small company#
Without monitoring, the director reports the problem: 'nothing works.' With monitoring, you'll find out earlier — that the disk is 90% full, the certificate expires in a week, and yesterday's backup failed.
Zabbix or Prometheus#
| Zabbix | Prometheus + Grafana | |
|---|---|---|
| Approach | agents, templates, all-in-one | collecting metrics over HTTP, individual components, |
| Entry threshold | lower for classic infrastructure | lower for containers and microservices |
| Templates | many ready-made: Windows, Linux, network hardware, DBMS, | exporters for almost everything, dashboards in Grafana |
| Storage | your own database (PostgreSQL/MySQL) | your time-series database |
| Suitable | offices, servers, printers, switches, | cloud, Docker, Kubernetes, your applications, |
A quick tip: servers, Windows, and network — Zabbix; containers and proprietary services — Prometheus. Both are free.
What to monitor first#
- Free disk space is the most common cause of failures.
- Availability of key services: website, email, 1C, VPN — external verification.
- Validity period of SSL certificates and domains.
- The result of the night backup is the time and completion code.
- CPU, memory, swap — trends are more important than instantaneous values.
- Disk status (SMART) and RAID.
- UPS: switch to battery and charge.
Alerts that don't annoy#
- An alert must demand action. "CPU 80% two minutes" — not an alarm, but noise.
- Use duration: "disk > 90% longer than 10 minutes," "service unavailable for 3 consecutive scans."
- Separate urgency: critical — in Telegram immediately, warnings — in the morning summary.
- If the alert is ignored three times, it needs to be redone or deleted.
Quick start with Prometheus#
Each Linux server has a metric exporter:
sudo apt install prometheus-node-exporter
On the monitoring server in prometheus.yml:
scrape_configs:
- job_name: nodes
static_configs:
- targets: ["srv1:9100", "srv2:9100"]
In Grafana, import the ready-made dashboard for node exporter — and in 15 minutes you have charts across all servers.
External verification#
Internal network monitoring won't notice that the internet channel is "broken." Add external verification of website and service availability — from a separate VPS or through a free external monitoring service.
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.