How to move from Zabbix or Prometheus to MonitorFlow
Import your hosts, checks, thresholds, maintenance windows and notification channels from Zabbix or Prometheus, preview what moves, then install the agent.
Switching monitoring tools usually means typing everything again: hundreds of hosts, their checks, the thresholds someone tuned over the years, maintenance windows and who gets told. MonitorFlow reads your current tool's configuration instead, shows you what it can do the same way, what it does differently and what it cannot do, and creates nothing until you confirm. Your servers then only need the MonitorFlow agent, and the old tool can keep running until you switch it off.
What gets moved
| In your current tool | In MonitorFlow |
|---|---|
| Hosts, targets | Servers waiting for their agent, with their name, addresses and system |
| Items, scrape jobs, probes | Checks: services, TCP ports, log patterns; CPU, memory and disks are measured on every server already |
| Triggers, alerting rules | Alerts with warning and critical levels, how long a problem must last, and the recovery margin |
| Maintenances, silences | Silences of the servers they cover |
| Media types and user media, receivers | Email, webhook, Slack, Teams and Discord notification channels |
Every line of the preview is in one of three lists:
- Same in MonitorFlow: it maps exactly.
- Approximated: MonitorFlow does something close, and the line says how it differs. A web scenario of several steps becomes a website check of its first page, for example, and a recurring maintenance becomes a silence of its next window.
- Cannot be moved: the line says why, with the expression or key it came from, so you can decide what to do about it.
Import from Zabbix
You need a Zabbix administrator account. Zabbix 6.0, 6.4 and 7.0 are supported.
From its API (recommended: it includes maintenances and who gets notified):
- In Zabbix, go to Users › API tokens and create a token for a Super admin user.
- In MonitorFlow, go to Settings › Move from another tool, choose Zabbix, then Connect to its API.
- Type the address of the Zabbix web interface (such as
https://zabbix.example.com) and the token, then Read and preview.
MonitorFlow only reads from Zabbix and does not keep the token.
From export files: in Zabbix, select your hosts under Data collection › Hosts and choose Export (YAML, XML or JSON). Export the templates they use and your media types the same way, then upload all the files at once. Exports carry no maintenances or user media, so silences and the recipients of email channels come only through the API.
What maps how:
- CPU, memory, file system and disk activity items are measured by every MonitorFlow server already. Their triggers become alerts with the same levels, macros resolved per host.
net.tcp.serviceandnet.tcp.portbecome TCP port checks;systemd.unit.*and Windowsservice.*become service checks;log[]andlogrt[]become log checks.- Web scenarios, HTTP agent items,
web.page.*andweb.certificate.getbecome website checks: the first step's URL, required status codes and string, redirects, headers and user name. Triggers onweb.test.fail,web.test.rspcodeand on those items are their alert, triggers onweb.test.timeand on a certificate's expiry thresholds on the check. Later steps, variables, a POST and a required string that is a regular expression are noted. Passwords are not imported: set them in the check afterwards.proc.numbecomes a check of the systemd service of that name. - Agent availability triggers and
agent.pingare MonitorFlow's offline alert, which every server has. - Network interface traffic, SNMP,
system.runand UserParameters cannot be moved yet.
Import from Prometheus
From its API: choose Prometheus, then Connect to its API, and type the Prometheus address (such as http://prometheus.example.com:9090) and, optionally, the Alertmanager address. With a live Prometheus, MonitorFlow sees the targets your file service discovery resolved and the real host names node exporter reports. Alertmanager's API hides secrets, so webhook and chat receivers come from files instead.
From files: upload prometheus.yml, the rule files, the file service discovery files and alertmanager.yml together.
What maps how:
- Node exporter targets become servers. A blackbox exporter's TCP probes become port checks and its HTTP probes website checks with the module's status codes, method, headers, redirects and body conditions (plain text; a real regular expression is noted), on the server that runs the exporter. TCP probes with
tls: truebecome website checks of the certificate. Rules onprobe_successandprobe_http_status_codeare their alert, rules onprobe_duration_secondsandprobe_ssl_earliest_cert_expiry - time()thresholds on the check. - The usual node rules (target down, CPU, load, memory, file system space, disk latency, systemd units) become alerts with their levels and
for:durations, andprobe_success == 0the alert of each probe. - Any other expression is listed as cannot be moved, with the expression.
- Receivers become channels: email, webhook, Slack, Microsoft Teams and Discord. Alertmanager routes are not moved: in MonitorFlow, a channel covers everything or one site.
- Active silences become silences of the servers their matchers select.
Preview, confirm, undo
- Read the three lists. Untick anything you do not want: what depends on it (the checks of a server you unticked) is left out too.
- Choose Create. Everything is created in one step and written to the audit log.
- Importing the same configuration again creates nothing twice: lines MonitorFlow has already show Already there.
- Changed your mind? Open the import under Earlier imports and choose Undo this import. It removes what the import created, except servers whose agent has already arrived, which keep their checks.
Everything here is also in the public API, under /api/v1/imports: list the sources, read files or connect, read the preview, confirm with the items to leave out, and undo.
Install the agents
Imported servers show Waiting for agent in the fleet and raise no offline alerts. On a server's page, Make an install command gives a ready-to-paste command for that server. You can also use an install key of the site from Settings › Add servers: an agent that enrolls with the same host name, or the short form of it, takes over the imported server with all its checks and alerts.
Keep the old tool running while the agents arrive. Both will notify you during that time; switch the old one off once every server reports to MonitorFlow.
This guide comes from the MonitorFlow repository. Suggest a change