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 →

📚 GuideИнфраструктура небольшой компанииНаблюдение · часть 2 из 3
Guide contents
Наблюдение
  1. Инфраструктура: мониторинг — Zabbix или Prometheus и Grafana, и что мониторить в первую очередь
Редакция КоммитРедакция портала
commit 946beaf · 19 days ago

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#

ZabbixPrometheus + Grafana
Approachagents, templates, all-in-onecollecting metrics over HTTP, individual components,
Entry thresholdlower for classic infrastructurelower for containers and microservices
Templatesmany ready-made: Windows, Linux, network hardware, DBMS,exporters for almost everything, dashboards in Grafana
Storageyour own database (PostgreSQL/MySQL)your time-series database
Suitableoffices, 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#

  1. Free disk space is the most common cause of failures.
  2. Availability of key services: website, email, 1C, VPN — external verification.
  3. Validity period of SSL certificates and domains.
  4. The result of the night backup is the time and completion code.
  5. CPU, memory, swap — trends are more important than instantaneous values.
  6. Disk status (SMART) and RAID.
  7. 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 00 участников · 0 гостей🔒 Rate and discuss after signing up

Comments · 0

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