
Monitoring, Part 6: How Zabbix, Prometheus, and Grafana Close Each Other's Weak Spots
🌐 Machine-translated from Russian. Show original
In this part:
Who is responsible for what#
| Problem | Who | Why |
|---|---|---|
| Switches, routers, UPS, printers, | Zabbix | the best SNMP templates and autodiscover |
| Windows, AD, 1C servers, | Zabbix | agent 2, ready-made templates, convenient without programming |
| "Hardware" servers (IPMI, RAID, SMART) | Zabbix | manufacturer templates, inventory, |
| Linux servers | Prometheus (node_exporter) or Zabbix | choose one to avoid duplicate |
| Applications, APIs, queues, containers, | Prometheus | out-of-the-box metrics, PromQL, service discovery, |
| Websites and certificates | Prometheus (blackbox) or Zabbix (web scripts) | scenarios with more convenient account login in Zabbix |
| Grafana dashboards | one screen for all sources | |
| Business metrics from | Grafana databases | direct SQL to PostgreSQL / MySQL / MS SQL |
Bundle 1. Grafana reads both systems#
Done in part 5: the attendant looks at one dashboard, and the data stays where it's most convenient to collect.
Bundle 2. Zabbix takes Prometheus metrics#
If the app already has /metrics, but you want triggers and Zabbix escalations:
- An HTTP agent data element with URL
http://app01:8080/metrics— information type Text, history 0 days (no need to store the text itself). - Dependent elements with Prometheus pattern preprocessing, such as
http_requests_total{code="500"}. - For multiple metrics — a detection rule with preprocessing of Prometheus to JSON.
Details and ready-made templates: zabbix.com/integrations/prometheus.
Bundle 3. Prometheus sees what Zabbix knows#
The reverse direction is used less frequently: for "networked" metrics in Prometheus, snmp_exporter is set, but with Zabbix running, this is usually unnecessary — it's easier to view Zabbix network charts in Grafana.
Bundle 4. Unified alert flow#
So that the duty officer does not receive the same thing three times:
| Rule | How |
|---|---|
| One source alerts the problem | the site checks either Zabbix or blackbox — not both |
| Unified channel | all systems write to one Telegram group "IT-alerts" with a clear prefix [ZBX] / [PROM] |
| Grouping | Alertmanager group_by, trigger dependencies in Zabbix |
| Silence during | Maintenance in Zabbix and Silence in Alertmanager — start |
| Importance | critical — in Telegram with a notification, warning — in a silent group or by email |
Bundle 5. Monitoring#
If the monitoring server crashes — who will tell you about it? Options:
- Dead man's switch: the Prometheus rule, which always triggers (
expr: vector(1)), and the external service waits for it every N minutes; if it doesn't come — alarm. - Uptime Kuma (uptime.kuma.pet, free) on another server or in the cloud: checks Zabbix, Grafana's web interfaces, and your external sites.
- Zabbix and Prometheus monitor each other: Zabbix checks port 9090, Prometheus checks the metrics of the Zabbix server.
Typical scheme for a company with 50–300 employees#
| Component | Where |
|---|---|
| Zabbix server + PostgreSQL, Prometheus, Alertmanager, Grafana | one VM: 4 vCPU, 8 GB RAM, 100–200 GB SSD, |
| Zabbix proxy | in every branch (small PC or VM) if the connection to the center is unstable |
| Agents | Zabbix agent 2 on Windows, node_exporter on Linux |
| Uptime Kuma | an affordable VPS outside the office |
SLA and reports#
- Zabbix Services (SLA): "1C available 99.5% of working hours" — with monthly reporting.
- Grafana: accessibility dashboard with PDF export (in OSS — via screenshots or plugins; built-in schedule reports — in paid editions).
The last part — growth, fault tolerance, and money: Monitoring, part 7: growth and fault tolerance, logs, security, and what paid versions provide.
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.