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 444a1b9 · 18 days ago

Monitoring, part 7: growth and fault tolerance, logs, security, and what paid versions offer

🌐 Machine-translated from Russian. Show original

In this part:

Zabbix under load#

  • Zabbix proxy — collects data in a branch or segment and transmits it to the server. Relieves load and experiences connection interruptions (buffers data).
  • Built-in server HA cluster (since version 6.0): several Zabbix servers, one active, the rest in reserve. In zabbix_server.conf on each node — HANodeName=zbx1 / zbx2 and a shared DBHost. The database must be fault-tolerant itself (PostgreSQL replication).
  • TimescaleDB is a PostgreSQL extension for history: faster queries and compression by many times. Scripts lie in /usr/share/zabbix/sql-scripts/postgresql/timescaledb/.
  • Intervals: do not poll everything every 10 seconds. Disks — every 5–15 minutes, inventory — once daily.
  • The NVPS (new values per second) benchmark is in the Administration → Queue and on the Zabbix server health dashboard.

Prometheus under load#

  • Prometheus stores data locally, defaulting to 15 days. For long-term storage and fault tolerance — remote_write in:
    • VictoriaMetrics (docs.victoriametrics.com) — the simplest, most efficient for disk and memory, compatible with PromQL;
    • Thanos or Grafana Mimir — for large distributed systems.
  • Two identical Prometheuses for reliability + Alertmanager in a cluster of 2–3 nodes (it will collapse the duplicate itself).
  • Watch for cardinality: label with user or order ID = millions of rows and fallen Prometheus.

Logi#

Metrics say "something is wrong," logs say "what exactly."

SolutionFeatures of
Grafana Loki (grafana.com/oss/loki)cheap storage, tag search, directly in Grafana; agent — Grafana Alloy
Elastic / OpenSearchpowerful full-text search but resource-intensive
Grayloga convenient interface for admins, syslog from network equipment,
Zabbixtemplate log file monitoring (log[], eventlog[] for Windows) — for spot checks

To start, Loki + Alloy on key servers and syslog from network equipment are enough.

Monitoring security#

The monitoring system knows everything about your network and has access to all servers — protect it as a domain controller.

  • Web interfaces only from the internal network or via VPN, HTTPS
  • Two-factor authentication in Zabbix and Grafana
  • Zabbix agent encryption (PSK or certificates), SNMPv3 instead of v2c
  • Prometheus and exporters listen only to the right addresses, firewall to ports 9100/9182
  • Read-only accounts for Grafana and integrations
  • Bot tokens and passwords in files with 600 privileges or in the secret manager
  • Backup of the Zabbix database, Prometheus/Alertmanager configs, and the Grafana database (/var/lib/grafana/grafana.db)

More details in the series "Information Security and Anti-Fraud."

Free or paid#

ProductFreePaid
Zabbixall features without restrictions, open sourcetechnical support and consulting: subscriptions with guaranteed response times, training, and certification
Prometheus, Alertmanager, exporters,all featuressupport through integrators and commercial services on a compatible
GrafanaGrafana OSS — all the coreGrafana Enterprise (scheduled reports, extended permissions, enterprise plugins), Grafana Cloud — there is a free tier with
VictoriaMetricssingle-node andEnterprise cluster: fault tolerance and
Uptime Kumafully—

When it makes sense to pay:

  • monitoring has become critical, and there is no expert — subscription to vendor or integrator support;
  • need scheduling management reports and fine rights — Grafana Enterprise;
  • no desire to keep your own servers — cloud service. Note: monitoring data contains server names, IPs, and sometimes personal data; when hosting in the cloud, check the data storage requirements in the Republic of Kazakhstan (series "Clouds in Kazakhstan").

Final checklist#

  • Zabbix 8.0 LTS: server, agents on all Windows and key Linux, SNMP on network hardware, and UPS
  • Prometheus: node_exporter, blackbox for websites and certificates, alert rules
  • Alertmanager and Zabbix send alerts to the same Telegram group, without duplicates
  • Grafana: sources Zabbix and Prometheus, "IT Health" dashboard
  • Maintenance (maintenance/silence) during work
  • External verification that the monitoring is alive
  • Backups and data retention period are configured
  • Documentation: what is monitored, who is on duty, how to respond

🎉 Series completed. Return to contents.

Comments 00 участников · 1 гость🔒 Rate and discuss after signing up

Comments · 0

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