Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Редакция КоммитРедакция портала
commit 8cc8942 · 18 days ago

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#

ProblemWhoWhy
Switches, routers, UPS, printers,Zabbixthe best SNMP templates and autodiscover
Windows, AD, 1C servers,Zabbixagent 2, ready-made templates, convenient without programming
"Hardware" servers (IPMI, RAID, SMART)Zabbixmanufacturer templates, inventory,
Linux serversPrometheus (node_exporter) or Zabbixchoose one to avoid duplicate
Applications, APIs, queues, containers,Prometheusout-of-the-box metrics, PromQL, service discovery,
Websites and certificatesPrometheus (blackbox) or Zabbix (web scripts)scenarios with more convenient account login in Zabbix
Grafana dashboardsone screen for all sources
Business metrics fromGrafana databasesdirect 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:

  1. An HTTP agent data element with URL http://app01:8080/metrics — information type Text, history 0 days (no need to store the text itself).
  2. Dependent elements with Prometheus pattern preprocessing, such as http_requests_total{code="500"}.
  3. 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:

RuleHow
One source alerts the problemthe site checks either Zabbix or blackbox — not both
Unified channelall systems write to one Telegram group "IT-alerts" with a clear prefix [ZBX] / [PROM]
GroupingAlertmanager group_by, trigger dependencies in Zabbix
Silence duringMaintenance in Zabbix and Silence in Alertmanager — start
Importancecritical — 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#

ComponentWhere
Zabbix server + PostgreSQL, Prometheus, Alertmanager, Grafanaone VM: 4 vCPU, 8 GB RAM, 100–200 GB SSD,
Zabbix proxyin every branch (small PC or VM) if the connection to the center is unstable
AgentsZabbix agent 2 on Windows, node_exporter on Linux
Uptime Kumaan 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 00 участников · 1 гость🔒 Rate and discuss after signing up

Comments · 0

No comments yet.Sign in to comment, rate and see all comments.