Collecting Prometheus metrics in Zabbix without running a Prometheus server
If your exporters already expose /metrics and you want those values in Zabbix, you do not need a Prometheus server in the middle. Zabbix pulls the Prometheus text exposition format directly. A single HTTP agent master item polls the exporter's endpoint, and dependent items extract individual series using Prometheus pattern or Prometheus to JSON preprocessing. Zabbix does not act as a Prometheus server: it does not scrape on Prometheus service discovery, it does not store data in a Prometheus time series database, and it does not evaluate PromQL. Each value you want becomes an item you define, with its own key, history, trends and triggers, so the design work moves from Prometheus configuration to Zabbix item and template design.
The main trade-off is the query model. Prometheus lets you compute across series at query time, aggregate by any label and build alert rules on expressions. In Zabbix, the same logic has to be expressed as preprocessing steps, calculated items, or triggers on individual items. The Prometheus checks documentation describes the constraints you will hit: Zabbix supports only == for value filtering, uses PCRE instead of RE2 for regular expressions, and indexes bulk processing on the first label condition. Before you commit, export a sample of the metrics you rely on, write down the PromQL expressions your teams use today, and confirm each one has a Zabbix equivalent. Check the exact supported syntax against the Zabbix Prometheus checks documentation for your Zabbix version.
Keep Prometheus when your alerting, dashboards or queries already depend on PromQL, when you need its reliability model for high-cardinality application metrics, or when other tools read its data. The Prometheus overview says the project values reliability over precision, so it is not a good fit where every sample must be exact. Collecting exporters through Zabbix suits teams whose monitoring lives in Zabbix already and who want host-level problems, escalations and inventory in one place. Ask your team to name which of their current alerts would need rewriting, and whether any dashboards or integrations would break, before choosing one path or running both.
What you need before the first Prometheus item
Most failed Prometheus collection attempts trace back to a missing prerequisite rather than a bad item. The cards below cover the Zabbix version and database, network reach from the collector, endpoint security and the metric inventory, in the order to check them.
Zabbix version and database
Confirm that your Zabbix server or proxy runs a release that is still supported, and that its database is on the supported list for that release. Zabbix 7.4 supports MySQL or Percona 8.0.30 to 9.7, MariaDB 10.5 to 12.3, PostgreSQL 13 to 18 and TimescaleDB 2.13 to 2.29. Check the exact combination against the requirements page before you start, since database support differs between releases.
Zabbix requirementsExporter reachability from the collector
The HTTP agent item is executed by the Zabbix server, or by the proxy that monitors the host, not by your browser or workstation. Confirm that the collector can open a TCP connection to the exporter port and the /metrics path, and that no firewall or network policy blocks the route. Record which component performs the check, because a proxy in another segment may be the only one that can reach the target.
Authentication and TLS on /metrics
Many exporters expose /metrics without credentials, while others require a bearer token, basic authentication or a TLS client certificate. Decide which method the endpoint uses, store the secret as a Zabbix macro with restricted visibility, and confirm that the certificate chain is trusted by the collector. Note that Prometheus itself documents its own security model separately, so do not assume an exporter's protections match what Prometheus would apply.
Prometheus security modelMetric inventory and naming
Agree on the list of metric families you need before creating any item, including their names, labels and expected sample frequency. Each dependent item adds processing work on the Zabbix side, so collecting every metric an exporter emits is rarely useful. Write down which labels identify a series, such as instance or job, because those labels decide how you filter values and build discovery rules.
Ownership of the endpoint
Name the team that owns each exporter and its port, and who approves changes to its metric names or label sets. Exporter upgrades can rename or remove series, which silently breaks triggers that depend on them. Agree on who is told when an exporter changes, and who verifies the Zabbix items after each change.
How to configure the HTTP agent master item and dependent items
This sequence turns a Prometheus exporter endpoint into one HTTP agent master item and a set of dependent items that hold the individual metric values. Following it in order lets you confirm each layer works before the next one depends on it.
Confirm the exporter endpoint is reachable
Before touching Zabbix, check that the exporter's /metrics URL answers from the Zabbix server or proxy that will poll it, not only from your workstation. Confirm the port, any TLS certificate chain and whether the exporter requires a token or basic authentication, since those settings must match the item. Done means a request from the polling host returns a text response with metric lines, which you can verify with a command-line HTTP client such as curl run on that host.
Create the HTTP agent master item
On the host, create an item of type HTTP agent and set the key to a unique name such as prometheus.metrics, which will be referenced by the dependent items. Set the URL to the full /metrics address of the exporter, add any required headers or authentication, and choose the polling interval that the exporter and your network can sustain. Save the item, then wait for one polling cycle to pass.
Check the raw response in latest data
Open Monitoring, then Latest data, and find the master item for the host. Open its value view and confirm it contains plain text in the Prometheus exposition format, with HELP and TYPE comment lines followed by metric name, label and value lines. If the value is empty, an HTML page or an error, fix the URL, authentication or proxy path before adding anything else. Done means the master item shows the expected metric lines with a recent timestamp.
Add dependent items with Prometheus pattern preprocessing
Create a dependent item for each metric you need, selecting the master item as its source. In the preprocessing steps, add a Prometheus pattern step that names the metric, the labels to match using == for value filters, and the value to return. Keep the number of matched series small for each item, since Zabbix indexes bulk processing on the first label condition. Done means the dependent item shows a numeric or text value in latest data that matches the same series on the raw response.
Validate patterns against the master item value
Use the preprocessing test function on the dependent item, supplying the stored master item value rather than a live request, so every pattern is tested against the same response. Compare the result with the raw metric line you saw earlier. Watch for label values containing regex special characters, because Zabbix uses PCRE rather than RE2, and for series that appear only after certain traffic. Done means each dependent item returns the expected value in the test window.
Add Prometheus to JSON for low-level discovery
For metric families that expand into many series, such as per-queue or per-endpoint counters, create a low-level discovery rule using the same master item as its source. Apply the Prometheus to JSON preprocessing step to return the series with their labels as discovery macros, then define item prototypes that use Prometheus pattern steps to read each series. Done means the discovery rule lists the expected series in its discovered entities view and the prototypes create items that resolve to values.
Confirm dependent items after several polling cycles
Let the master item run through several polling cycles, then review the dependent and discovered items in latest data. Check that values update on each cycle, that no items show unsupported errors, and that the number of discovered series stays within what you expect for that exporter. Ask the exporter owner which series are expected to disappear during restarts, because items for those series will report no data until they return. Done means every item you configured reports a current value.
How Zabbix reads Prometheus data differently from PromQL
Zabbix does not query a Prometheus server or a time series store. It fetches the text exposition format from a /metrics endpoint with an HTTP agent master item, then parses that text in preprocessing. Every item sees one scrape at a time, so the question is never what a series did over the last hour. The question is what the current response contains. That difference shapes every filter you write. PromQL can aggregate, rate, join and compare across series; Zabbix reads what is in the response and applies the preprocessing steps you configure, in order. Before you port anything, decide which of your PromQL expressions depend on history or cross-series arithmetic, because those will move into Zabbix triggers, calculated items or another tool rather than translate line for line.
The documented limits are narrow, and they matter most when you write value filters. Zabbix supports only == for matching label or value conditions, so a PromQL selector such as {code!="200"} or {job=~"api.*"} has no direct equivalent in a Prometheus pattern step. Use a positive match on the exact value where you can, and invert the logic in a trigger expression if you need to exclude values. Regular expressions run on PCRE rather than RE2, so patterns that rely on RE2 behavior should be tested against sample output before you rely on them. Zabbix also indexes bulk processing on the first label condition, so put the most selective label first in the condition list. Confirm these limits against the version you run, because the Zabbix Prometheus checks documentation is the authority on what each release accepts.
For porting, take each existing PromQL expression and sort it into one of three groups: a single-series value filter that Zabbix can reproduce, a comparison over time that belongs in a Zabbix trigger with its own function, or a multi-series aggregation that may be better computed where the data already lives. Save a raw scrape of each exporter as a test fixture, run your candidate filters against it, and compare the results with what Prometheus returns for the same moment. Where you find a gap, decide whether to keep Prometheus for that query. The Zabbix Prometheus checks documentation is the next read for exact preprocessing syntax.
Mapping Prometheus metric names, labels and types to Zabbix items
This table shows how each part of a Prometheus exposition line maps to a Zabbix master item, dependent item, key parameter, tag or trigger. Read it before building the first template, because the choices made for keys and tags are hard to change once hosts are collecting data.
| Prometheus element | Zabbix placement | What to decide | Watch for |
|---|---|---|---|
| Metric name | Dependent item name and key suffix | Keep the Prometheus name in the key so the item traces back to the exporter's documentation | Names are unique per exporter, but two exporters can expose the same name, so include the job or exporter in the template name |
| Label set (stable labels) | Item key parameters or tags | Use labels that identify the series, such as device or mount point, as key parameters; use descriptive labels as tags | Each new label value creates a new item, so high-cardinality labels inflate item counts quickly |
| Label values for filtering | Prometheus pattern preprocessing with == filter | Filter on exact label values only, since Zabbix supports == for value filtering | Regular expressions run as PCRE, not RE2, so patterns copied from PromQL may match differently |
| Help text (HELP line) | Item description field | Record the exporter's meaning and units in the description so operators can read the item | Help text is informational only; it does not set the units field, which you set manually |
| Metric type (gauge) | Numeric item with the value as reported | Trigger on the current value and thresholds, such as free space or queue depth | A gauge can rise and fall, so use averages or hysteresis to avoid flapping alerts |
| Metric type (counter) | Numeric item, often with change-per-second preprocessing | Store the raw counter and derive a rate in a separate dependent item when a trigger needs throughput | A counter reset after a restart produces a false spike unless preprocessing discards negative deltas |
| Histogram or summary buckets | Separate dependent items per bucket or quantile, or a single JSON-based item | Decide which quantiles operators will alert on before creating dozens of items | Bucket series multiply item counts and make trigger logic harder to read |
How exporter data flows into Zabbix items
The flow starts with the Zabbix server or a proxy sending an HTTP agent request to the exporter's /metrics endpoint across the boundary between your monitored network and the Zabbix components. The master item stores the raw Prometheus text exposition, and dependent items apply Prometheus pattern or Prometheus to JSON preprocessing to pull out individual values. Those values are then written to the Zabbix database as history. Check that the collector can reach the exporter port and that each dependent item points at the correct master item.
Exporter text moves through a master item and dependent items into Zabbix history.
Securing exporter endpoints and the Zabbix side of the collection
Every exporter endpoint Zabbix reads is a path into a system that may expose internal state, labels and sometimes secrets. The cards below cover the controls on both sides of the collection: the exporter endpoint itself, the credentials Zabbix uses to reach it, the network path from the proxy, and the labels that leave the network. Each one is a design decision the team should settle before the first HTTP agent item goes live.
HTTP authentication and TLS on exporters
Many exporters serve /metrics without authentication and over plain HTTP, which is acceptable only on a network segment the team already controls. Decide per exporter whether it needs basic authentication, a bearer token or client certificates, and whether TLS terminates at the exporter or at a reverse proxy in front of it. In the Zabbix HTTP agent item, confirm the exact scheme, port, headers and certificate verification settings, and test that an unauthenticated request is refused.
Storing scrape credentials as macros
The password, token or client key used by the HTTP agent item should live in a user macro, not typed into the item definition, so it can be changed without editing every item. Confirm which macros are secret text, who holds the Super admin or Admin role that can read them, and whether the macro values are visible through the API or exports. Record which templates reference the macro so a rotation does not silently break collection on other hosts.
Restricting proxy reachability
If a Zabbix proxy polls the exporters, the firewall rules should allow only that proxy to reach the metrics ports, and nothing else on the monitored network should be able to scrape them. Map each exporter port to its proxy, document the source addresses, and block the rest at the host or network layer. Test from an unapproved host as well as from the proxy, because an open port on an exporter is often reachable from the whole subnet by default.
Reviewing sensitive labels and metric content
Prometheus labels can carry query strings, user identifiers, internal hostnames, file paths or customer identifiers, and those values are copied into Zabbix item keys, discovery results and problem messages. Review a sample of each exporter's output before collection starts, and decide which metric families to drop or relabel at the exporter. Confirm who can view the resulting Zabbix items and history, since Zabbix users with read access to a host can see these values.
Designing Zabbix access and audit controls
Zabbix offers user roles, authentication methods, API access and audit logging that govern who can change scrape items, macros and proxy assignments. Treat these as areas to design rather than settings to assume: decide which team owns the templates, who may edit credentials, and how changes to HTTP agent items are reviewed. Confirm against the Zabbix security documentation for the version in use which of these controls your installation actually provides.
Zabbix authentication docsWhen to keep Prometheus instead of moving collection to Zabbix
Keep Prometheus where PromQL dashboards and alert rules are central to how your teams work. Prometheus is licensed under Apache-2.0, so there is no license fee to remove by moving collection, and its costs are the infrastructure it runs on, the storage it fills, and the staff who operate it. Moving collection to Zabbix does not remove those costs; it changes which system carries them. If your engineers already write and review PromQL rules, and your Grafana dashboards depend on it, a migration would rewrite working alerting logic and retrain people for a benefit that may not appear in your environment. Confirm with your own team how many rules and dashboards depend on PromQL before you estimate that work.
Plan storage and availability before you decide. Prometheus keeps data in a local time series database with a default retention of 15 days, and its storage docs state that local storage is not clustered or replicated and should be managed like any other single-node database. If you need long-term retention, you will need remote write to an external store, which is another system to build, secure and pay for. Alertmanager should receive alerts from every Prometheus instance, and the Alertmanager documentation recommends pointing Prometheus at each Alertmanager instance rather than at a load balancer. Zabbix server offers a native high availability cluster on a shared database, so the two platforms make different availability trade-offs that your team should compare against its uptime requirements.
Consider the accuracy model as well. The Prometheus overview says the project values reliability over precision and is not a good fit where 100% accuracy is required, such as per-request billing. If an alert or report must be exact, keep that measurement on a platform designed for it, and do not move it to Zabbix on the assumption that it will be more accurate. Zabbix reads the Prometheus text format but is not a Prometheus server, so PromQL functions, its regular expression engine and its label matching differ from what your rules expect. Recommend keeping Prometheus for any workload where its query language and alerting are the working interface, and collecting only the exporters that Zabbix templates cover well.
Questions teams ask before connecting Prometheus exporters to Zabbix
What drives the cost of connecting Prometheus exporters to Zabbix?
The cost depends mostly on how many exporters and distinct metric families you collect, how many Zabbix items each one creates, and how much of the mapping you want done before go-live. Zabbix itself has no license fee, and Prometheus is licensed under Apache-2.0 with no paid enterprise edition, so the spend is infrastructure, implementation effort and the staff who run the result. Ask any partner for a quote that separates one-time work (template design, preprocessing tests, dashboards, alert migration) from recurring work (template upkeep after exporter upgrades, Zabbix upgrades and monitoring of the collection itself).
How long does a Prometheus to Zabbix collection project usually take?
Duration depends on the number of exporters, whether each one already has a clean metrics endpoint, and how many alerts must be rebuilt as Zabbix triggers. A single exporter with a stable /metrics endpoint is a much smaller job than a fleet with mixed exporter versions and custom labels. No timeline figure has been researched for this work, so ask for a schedule in the written scope that lists the exporters, the number of hosts and the acceptance tests for each.
What does our team need to provide before the work starts?
You need a list of exporters with their versions and endpoints, the hosts they run on, and the metrics you actually use in dashboards and alerts. Your team should also confirm network paths from the Zabbix server or proxy to each /metrics endpoint, any authentication or TLS requirements, and which Zabbix version and database you run. Access to a non-production Zabbix instance for testing is important, because preprocessing rules are easiest to validate against real exporter output.
Can our own team connect Prometheus exporters to Zabbix without a partner?
Yes, a team with Zabbix administration skills can do this alone, starting with one exporter. Zabbix reads the Prometheus text exposition format directly, so you do not need a Prometheus server, and the HTTP agent master item plus dependent items pattern is documented. The harder parts are the differences from PromQL: Zabbix supports only == for value filtering, uses PCRE rather than RE2, and handles bulk processing differently, so queries you copy from Prometheus will often need rewriting. A partner is most useful when many exporters must be converted at once or alerts must be rebuilt with the same behavior.
How does the number of exporters affect Zabbix load?
Load grows with the number of items, the number of hosts polled and how often each master item runs. Each exporter endpoint is fetched by one HTTP agent master item, and dependent items then process that same response, so adding dependent items adds processing without adding HTTP requests. Large exporters with many metric families can return big responses, so the cost of parsing them rises with their size. Ask for a load estimate based on your own item counts and test it on a copy of production before rollout.
How do polling intervals change the result and the load?
Shorter polling intervals give finer resolution but send more requests to each exporter and make Zabbix process more data per hour. Longer intervals reduce load but can hide short spikes, which matters for rate-based alerts. Prometheus itself values reliability over precision, and Zabbix will only store what its master item fetches, so align the interval with the alert logic you are migrating. Confirm the chosen intervals against both exporter capacity and Zabbix server or proxy capacity before setting them across many hosts.
When should we keep Prometheus instead of moving collection to Zabbix?
Keep Prometheus when you rely on PromQL queries, rate and histogram functions, or Alertmanager routing that your teams already use, or when your environment is mainly Kubernetes and cloud-native services. Prometheus pulls from service discovery, can push short-lived job metrics through a gateway, and has its own local storage with a default retention of 15 days, which you would need to plan for separately. Zabbix is a better fit when you want one place for host, network and application problems with its own alerting and escalation. Many teams run both, with Zabbix reading selected exporters.
Failure points that break Prometheus collection in Zabbix
Prometheus collection in Zabbix fails in quieter ways than most integrations. Expressions that work in PromQL can be silently unsupported, exporters can grow past the time a poll is allowed to take, and credential changes can stop a master item without an obvious alert. Each risk below has a cause and a check you can run before it reaches production.
Unsupported PromQL syntax in filters
Zabbix reads the Prometheus text exposition format directly, so it does not evaluate PromQL. The Prometheus pattern preprocessing step supports only the == operator for value filtering. A filter written with != or a range or regex matcher copied from a dashboard query will not behave as it does in Prometheus. Check each filter against the == operator only and rewrite other conditions as separate dependent items or as checks on the Zabbix side.
Zabbix Prometheus checksRegex patterns that differ from RE2
Prometheus uses RE2 for regular expressions, while Zabbix uses PCRE. Most simple patterns match the same text in both, but lookaheads, backreferences and some Unicode classes are valid in PCRE and not in RE2, so a pattern tested in Grafana may match more or fewer series in Zabbix. Test each regex against a saved copy of the exporter output with the same label values your production targets return, and check the matched item count after the first poll.
Zabbix Prometheus checksTimeouts on large exporters
The master item fetches the whole /metrics page in one HTTP request, then every dependent item parses it. A large exporter, such as one that exposes many series per container, can exceed the item timeout or slow the poller that holds it. Symptoms are gaps in data and intermittent unsupported items. Measure the response size and fetch time with curl from the Zabbix server or proxy, then set the timeout and polling interval based on that measurement rather than the defaults.
Label cardinality growth
Every unique combination of labels becomes a separate Zabbix item once a dependent item or low-level discovery rule creates one per series. An exporter that adds a label per request, pod or user can multiply the item count between one poll and the next, which increases database size and history writes. Agree on a label allow list with the metrics owners before discovery goes live, and review the discovered item count after each exporter upgrade.
Master items failing silently after credential rotation
A master item that sends a bearer token or basic credentials keeps polling after the secret changes only if the new value is updated in the item or in a Zabbix macro. When the exporter starts returning 401 or 403, the dependent items stop receiving values and can show stale data without an obvious error on the dashboard. Add a trigger on the master item's error or on the absence of new data, and record which secret macro each host uses so rotation updates every affected host in one step.
Testing collection and keeping it running after handover
Testing starts by comparing what Zabbix stores with what the exporter returns. Pull the raw /metrics output from the exporter with the same URL, headers and authentication the HTTP agent master item uses, then check each dependent item's latest value against the matching sample line and label set. Pay attention to the differences the Zabbix implementation imposes: it reads the text exposition format only, filters values with ==, and evaluates regular expressions with PCRE rather than RE2. A pattern that matched in a PromQL query can behave differently here, so test each expression against the actual payload. Confirm that counters, which keep growing, are stored and graphed in the way the team expects, and that the item types and units match what the exporter documents. Record the expected values in the test plan so that a later reviewer can repeat the check.
Once values match, watch the collection path for errors. Review the master item's last error, the dependent items in the unsupported state, and the notifications from the template's triggers, because a failed preprocessing step on a dependent item often leaves the item unsupported without an obvious alarm. Add a trigger or a dashboard that tracks the master item's availability and the count of unsupported items, and have the team own it like any other monitored service. Plan the upgrade path in two parts. Zabbix upgrades follow its own life cycle, so confirm which release line the environment runs and when its support ends, using the Zabbix life cycle page as the starting point. Exporter upgrades can change metric names, label sets or types, which breaks dependent items silently, so re-run the value comparison after each exporter release and before any Zabbix upgrade. Prometheus release lines matter here only if the exporter is shipped by Prometheus itself, and the team should confirm which exporter versions it depends on before scheduling changes.
How DeployOpen scopes and delivers Prometheus collection in Zabbix
DeployOpen approaches Prometheus collection in Zabbix as a defined integration project: we agree which exporters, metrics and hosts are in scope, build the HTTP agent and dependent item chain, and hand over a documented setup your team can run. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Inventory the exporters, endpoints and metric families to collect, and which ones Zabbix really needs to alert on
- Decide per exporter whether Prometheus pattern or Prometheus to JSON preprocessing fits the metrics and label logic
- Record where PromQL-based logic must be redesigned as Zabbix triggers, and where Prometheus stays the source of truth
How we build
- Create the HTTP agent master items against each
/metricsendpoint, with authentication, timeouts and proxy assignment set per host - Build dependent items and any low-level discovery rules, then test filters against real exposition output from your exporters
- Verify values, units, update intervals and item counts on a staging host before rolling the template out to production hosts
How we hand over
- Deliver the template set, item and trigger inventory, and a mapping of each Prometheus metric to its Zabbix item
- Document known limits, including the
==only value filter, PCRE regular expressions and bulk processing behavior, for your operators - Walk your monitoring team through the build and the runbook for adding a new exporter to the template
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, covering exporter version changes and Zabbix upgrades
- Review the collection setup after Prometheus exporter changes so metric names and label filters keep matching
- Confirm the support scope, response expectations and review cadence in the written agreement before work starts

