Moving InfluxDB line protocol metrics to Prometheus

Accepting Telegraf and other line protocol senders with influxdb_exporter, mapping tags to labels and fields to samples, and deciding when to re-instrument instead.

On this page

Migrating InfluxDB line protocol metrics to Prometheus: the short answer on effort

If your team runs Telegraf or other senders that write line protocol into InfluxDB and wants Prometheus as the query and alerting layer, the first step is usually smaller than the team expects. The official influxdb_exporter listens for line protocol over HTTP and on UDP port 9122 by default, so existing senders can often keep writing unchanged while you test. That shortcut only pays off if the data it produces is usable. Tags become Prometheus labels, so a tag with unbounded values such as request IDs or user identifiers will create a cardinality problem that no amount of exporter configuration fixes. Field types also matter: the exporter supports float, int and boolean fields, and a field that changes type between writes will confuse downstream queries. Timestamps need the same scrutiny, because Prometheus expects samples to arrive in order and at a sensible age.

The short answer on effort is that it depends mostly on how many measurements, tags and fields the senders produce, and how many of your dashboards and alerts depend on InfluxDB query language. A small set of Telegraf inputs with stable tags is typically a bounded piece of work. A large estate with ad hoc tags, mixed field types and InfluxQL or Flux alerts is a redesign, because each alert must be rewritten in PromQL and each label set reviewed. Confirm the exact InfluxDB version and write path your senders use before you estimate, since the exporter's v2 endpoints differ from the older write APIs. Prometheus is licensed under Apache-2.0 and has no paid edition of its own, so the cost you will pay is infrastructure, storage and the people who build and run the pipeline.

Before committing, ask the question that decides whether this path is right: is line protocol a bridge for a few years, or the permanent design? If the answer is a bridge, accept the exporter and plan to re-instrument the most important services with a native client library later. If the answer is permanent, invest in tag and field review up front, because that review is where most of the effort in this migration sits. A partner quote should name the sender inventory, the label and type decisions, the alert rewrite count and the parallel-run period, so you can compare it with doing the work in-house.

Which InfluxDB concepts map cleanly to Prometheus and which do not

This table compares InfluxDB concepts with their closest Prometheus equivalents and marks where the mapping loses information or needs redesign. Read the rows marked as redesign items before you convert any dashboard, alert or sender, because those are the places where a direct translation produces wrong or unusable results.

InfluxDB conceptPrometheus equivalentFit and what to check
MeasurementMetric name, often with a prefixMaps cleanly if names are rewritten to Prometheus naming rules. Field names are usually combined with the measurement, so confirm the generated names before building dashboards.
TagsLabelsMaps well for low-cardinality values such as host role or region. High-cardinality tags such as request IDs or user IDs need redesign, because each unique combination creates a new series.
Fields (float)Float sample valueMaps cleanly. Each field becomes a numeric sample that PromQL can aggregate and alert on.
Fields (int)Float sample valueMaps with a caveat. Prometheus stores samples as floats, so very large integer counters may lose precision. Confirm the expected value range.
Fields (boolean)Numeric 0 or 1 sampleMaps with conversion. Alert rules must compare against 0 or 1 rather than true or false keywords.
Fields (string)No direct sample typeDoes not map. Move string content into a label only if its values are bounded, or drop it and keep a separate log or event store.
TimestampsScrape time or explicit sample timePartly maps. Prometheus assigns scrape time by default, and explicit timestamps from senders need checking because old or future samples may be rejected or behave unexpectedly.
Retention policiesLocal retention and remote storageRedesign needed. Prometheus local retention is set by time or size, and longer history normally requires a remote write target.
Continuous queriesRecording rulesMaps by concept. Rewrite each continuous query as PromQL in a recording rule and test that the output matches the old result.
InfluxQL, Flux or SQL queriesPromQLRedesign needed. Queries must be rewritten for counter and rate semantics, and joins or non-numeric filters often have no direct equivalent.
Alerting on query resultsAlert rules in Prometheus with AlertmanagerMaps with rewrite. Each alert must be expressed as a PromQL expression with its own threshold and duration, then routed through Alertmanager.

Accept line protocol through the exporter or re-instrument the service

Telegraf and other line protocol senders are often deployed across many hosts and owned by teams outside the monitoring group, so changing them can take longer than the migration itself. The influxdb_exporter accepts line protocol over HTTP, listens on UDP port 9122 by default, supports the v2 HTTP endpoints and converts tags to Prometheus labels. That lets existing senders keep pointing at a familiar address while Prometheus scrapes the result.

  • Tag mapping: Each tag becomes a label, so tag values with high cardinality, such as request IDs or user IDs, will multiply series and should be dropped at the sender.
  • Field types: The exporter supports float, int and boolean fields, so confirm that every field your dashboards and alerts rely on falls into one of these types.
  • Timestamps: Samples carry the timestamp the sender provides, so check clock sync on senders and whether late or out-of-order samples are acceptable for your alert rules.
  • Endpoints: Confirm which v2 endpoints each sender uses and whether the UDP and HTTP paths both need to stay open through your firewalls.
  • Accuracy: Prometheus favors reliability over precision, so counters from the bridge may miss samples under load. Keep precision-dependent uses such as billing in a system built for exact records.

Before cutover, compare series counts and sample values from the bridge against the original InfluxDB output for a representative period.

Documented tools for the bridge: influxdb_exporter and its endpoints

The bridge between InfluxDB line protocol senders and Prometheus is the official influxdb_exporter, which accepts line protocol and exposes it to Prometheus scraping. The cards below cover the exporter's documented inputs, how its output maps to Prometheus data, and the sender side you must verify before cutover.

Line protocol over HTTP intake

The influxdb_exporter collects metrics sent in InfluxDB line protocol over HTTP. Your senders must post to the endpoints the repository documents, so confirm the exact path, method and payload format against the version you deploy before pointing any production traffic at it. Treat the repository README as the authority for what is accepted, not an older tutorial.

Default UDP port
9122
Exporter repository

Supported v2 HTTP endpoints

The exporter supports the InfluxDB v2 HTTP endpoints. If Telegraf or another sender writes to a v2-style write path, the exporter can receive it without changing the sender's protocol. Confirm which write paths your senders use and whether each one is covered by the documented endpoint list, because v1 write paths and other vendors' agents may need a different route or a sender change.

Tag to label conversion

Line protocol tags become Prometheus labels, so each unique tag combination creates a separate time series. Review tag keys such as host, request ID or container ID before cutover, because high-cardinality tags can overload Prometheus. Drop or rename tags in the sender configuration where they add no query value.

Float, int and boolean fields

The exporter supports float, integer and boolean fields. Check how each measurement field is typed in your senders, since a field that changes type between writes can produce inconsistent series. String fields are a separate question, so verify in the repository whether they are handled before assuming a migrated measurement will load unchanged.

Telegraf output and Prometheus scrape config

Point the Telegraf output plugin for InfluxDB at the exporter's listener address, then add a Prometheus scrape job that pulls from the exporter's metrics endpoint. Keep the exporter on a network path Prometheus can reach, and test one host first. Confirm the output plugin's version and settings in the Telegraf documentation, because option names change between releases.

Other senders and v1 checks

Verify every sender individually. Telegraf is the common case, but scripts, client libraries and v1 clients may use different endpoints, batching, precision settings or authentication. Send one test write from each sender, confirm the exporter accepts it, and check the resulting series in Prometheus before you retire the original destination.

How line protocol flows from Telegraf through the exporter into Prometheus

The flow starts with Telegraf or another sender writing line protocol over HTTP to influxdb_exporter, which listens on UDP port 9122 by default. The exporter converts each write into metrics and exposes them on its own scrape endpoint, where Prometheus pulls them on its normal schedule. From there, PromQL, alert rules and Alertmanager work as they do for any other target. The trust boundary sits at the network segment where the exporter receives writes, because anything that can reach that listener can write samples into your monitoring.

Line protocol writes enter at the exporter, then Prometheus scrapes and evaluates them.

Inventory, pilot, run both, then cut over and decommission

This sequence moves InfluxDB line protocol senders onto Prometheus in controlled stages, so each measurement is proven in Prometheus before the InfluxDB write path is retired. The output is a tested mapping, parallel dashboards and alerts, and a documented decommission.

  1. Inventory measurements, tags and senders

    List every measurement, field, tag key and sender that writes line protocol today, including Telegraf plugins, application libraries and scripts that post to the write endpoints. Record which dashboards, alert rules and downstream consumers read each measurement. Owners of each sender and each consumer should confirm the list. This step is done when every sender has a named owner and every measurement has at least one known reader or an explicit decision to drop it.

  2. Review cardinality before mapping tags

    Tags become Prometheus labels, and every distinct tag value creates a separate time series. Flag tags that carry unbounded values such as request IDs, user IDs, full URLs or timestamps, and decide whether each one is kept, aggregated at the sender, or removed. Compare the expected number of distinct series per measurement against the capacity of the Prometheus server you plan to run. This step is done when a reviewed list of kept and dropped tags exists and has been signed off by the metric owners.

  3. Pilot the exporter with one sender

    Run influxdb_exporter in a test environment and point one low-risk sender at it, sending to the exporter's UDP listener or its HTTP write endpoints depending on how that sender is configured. Confirm the exporter's listening port and protocol settings against the influxdb_exporter repository before configuring the sender. Keep the existing InfluxDB write path untouched during the pilot. This step is done when the chosen sender's data appears in Prometheus through a scrape of the exporter.

  4. Verify mapping, field types and timestamps

    For each pilot measurement, compare the raw line protocol values with the series Prometheus stores. Check that tags became the expected labels, that float, integer and boolean fields have the types your queries assume, and that timestamps are accepted as sent. Watch for fields that change type between writes and for sender clocks that drift, since stale or skewed timestamps can make series look missing or misplaced. Record each mismatch and its fix in the mapping document. This step is done when every pilot measurement passes a written comparison.

  5. Run both write paths in parallel

    Enable the remaining senders to write to both InfluxDB and the exporter, so each metric exists in two systems during the overlap. Build Prometheus versions of the key dashboards, then compare them against the InfluxDB originals over the same time ranges, looking at values, gaps, and aggregations. Any difference should be traced to a mapping, cardinality or query change before continuing. This step is done when the owners of each dashboard accept the comparison in writing.

  6. Move alert rules to PromQL

    Rewrite each alert that currently depends on InfluxDB queries as a Prometheus alert rule in PromQL, then route its notifications through Alertmanager. Where an alert fires on a threshold, confirm that the new rule fires and resolves at the same conditions by replaying known events or by testing against the parallel data. Notification receivers should be tested before the InfluxDB alerts are disabled. This step is done when each migrated alert has a documented test result and an owner who accepts it.

  7. Cut over reads and stop the InfluxDB write path

    Switch dashboards, alerts and any other consumers to Prometheus as their primary source, then redirect senders so they stop writing to InfluxDB. Keep the InfluxDB instance readable for an agreed period so that historical questions can still be answered. Confirm with consumers that nothing still queries the old data. This step is done when no sender writes to InfluxDB, no alert or dashboard depends on it, and the cutover has been announced to the owners.

  8. Decommission the write path and document

    Remove the InfluxDB write configuration from senders, stop the exporter's temporary routes if any, and archive or delete InfluxDB data according to the retention decision made at inventory. Record the final mapping, retained tags, known limitations and owners in the runbook for the Prometheus server. Confirm that backups of the archived data meet your retention requirements before removing the instance. This step is done when the InfluxDB service is retired and the runbook is reviewed by the operations team.

How timestamps, field types and tags change the data

The section's central point is that line protocol data does not arrive in Prometheus unchanged, and each measurement needs a decision before cutover. The influxdb_exporter accepts float, int and boolean fields, so those become numeric samples. Confirm how your senders encode integers and booleans, since a field that changes type between writes can produce conflicting series. String fields are not converted into sample values by the exporter, so decide whether each one becomes a label, moves to a log pipeline, or is dropped. Mixed-type fields, where one sender writes 1 and another writes 1.0 or "ok", need to be found in your data and normalized at the sender before they reach the exporter.

Timestamps are the next risk. Line protocol carries an optional timestamp at a precision set by the write request, and Prometheus stores samples at millisecond resolution. Check the precision parameter your Telegraf outputs and other senders use, and confirm that the exporter's handling matches it for your version. Sender clocks matter as much as precision: if hosts drift, samples land out of order or in the wrong scrape interval, and alert rules built on rate() will misread them. Ask whether the sender supplies timestamps at all. If it does not, Prometheus stamps samples on receipt, which changes the meaning of every time-based query.

Tags carry the biggest long-term risk. Each InfluxDB tag becomes a Prometheus label, and each unique combination of label values creates a separate series. Tags such as request IDs, user IDs, email addresses or raw URLs with query strings will grow memory and disk use without limit. Review the tag set of every measurement, mark any unbounded tag for removal or aggregation, and run each measurement with a representative sample of real writes against a test Prometheus, counting resulting series and comparing query results with InfluxDB. Treat that test as a gate for cutover, not an optional check.

What drives the cost and duration of this move

This table lists the inputs that change the effort of moving InfluxDB line protocol senders to Prometheus, with the cost type and how to keep each one down. Use it to see which parts are one-time work and which recur, and to check that a quote covers each row.

DriverWhy it changes cost or effortHow to keep it down or what to ask for
Measurements and sendersEach Telegraf agent, application and script that writes line protocol needs its endpoint changed, its metrics mapped and its output checked.Ask the quote to list every sender by host group and owner, with a count of distinct measurement names.
Tag cardinalityTags become Prometheus labels, so high-cardinality tags such as request IDs or user IDs multiply series and raise storage and query load.Ask for a tag review per measurement and a decision on which tags to drop, aggregate or keep before any build starts.
Field type mixFloats, integers and booleans map to Prometheus samples differently, and some fields need a rename or a split into separate metrics to behave well.Ask for a field type inventory per measurement and a written mapping for each type, including any conversion the exporter needs.
Dashboards and alert rulesEvery Grafana panel and alert that queries InfluxQL, Flux or SQL must be rewritten in PromQL and retested against the new series names.Ask for a count of dashboards and alerts in scope and a rule for how many are rebuilt versus retired.
Historical data needBackfilling existing InfluxDB history into Prometheus is a separate piece of work and is not automatic with the exporter.Decide whether history is required for audit or capacity review, and ask whether backfill is in or out of scope.
Retention and storage sizingPrometheus keeps local data for 15 days by default, and retention can be set by time or size, so longer history needs remote storage or a larger disk.Ask for a sizing estimate based on series count and sample rate, plus the chosen retention and any remote write target.
Team PromQL skillTeams that already know PromQL review and maintain rules faster, while teams new to it need training and more review cycles.Ask whether the partner will hand over reviewed rules with explanations, and whether training is included.
One-time workMapping, exporter setup, testing and dashboard rebuilds are paid once, although they may recur when new senders are added.Ask the quote to separate build tasks, test evidence and cutover steps so each can be checked.
Recurring workInfrastructure, Prometheus upgrades, rule maintenance and on-call for alerts continue after cutover.Ask who owns each recurring task after handover and what the upgrade plan covers for the Prometheus release line in use.

What usually goes wrong with line protocol to Prometheus moves

Most problems in a line protocol move come from assumptions carried over from InfluxDB into Prometheus. The cards below cover the places where tags, types, timestamps, retention and endpoints behave differently, and what to check before traffic is switched.

Tag explosion creates unbounded series

Telegraf and other senders often attach tags such as request IDs, user IDs or container hashes that InfluxDB indexes cheaply. Once the influxdb_exporter maps each tag to a Prometheus label, every new value creates a new series and memory use grows with it. Prevention: before cutover, list every tag key per measurement, drop high-cardinality keys in the sender or with relabeling, and watch the series count for a full business cycle.

Prometheus overview

Silent type coercion of fields

The exporter supports float, int and boolean fields, but Prometheus samples are floating-point values, so the type a sender wrote is not preserved as a type in the stored data. A field that changes from integer to float between sender versions can produce a series that looks valid but no longer matches existing dashboards or rules. Prevention: sample each field from live traffic, record its type, and test every PromQL expression against the converted series before retiring the old panel.

Timestamp skew between senders

Line protocol lets a sender set its own timestamp, while Prometheus scrapes and stores samples on its own schedule. Clock drift on a sender or batched writes with old timestamps can place samples outside the window Prometheus will accept or make rate calculations jump. Prevention: confirm NTP on every sender, decide whether senders or the exporter set timestamps, and check that counters increase monotonically in the converted series.

Lost history beyond local retention

InfluxDB deployments often hold months or years of data, but a default Prometheus server keeps 15 days locally and the exporter does not carry older points across. Teams that assume the move preserves history discover gaps in quarterly reports and capacity reviews after the old system is shut down. Prevention: export the history you need before decommissioning, decide whether it belongs in a backfill or a long-term store, and document the retention window your reports depend on.

Prometheus storage docs

Single-node storage without replication

Prometheus local storage is not clustered or replicated. If the single server that receives line protocol writes through the exporter fails, the metrics from that path stop until the node is restored and the write-ahead log is recovered. Prevention: run the exporter next to a Prometheus server you can rebuild, back up the data directory on a schedule, and decide early whether remote write to a long-term store will provide a second copy.

Storage docs

Exposed write endpoints

The influxdb_exporter accepts writes over HTTP and UDP, and anyone who can reach those endpoints can inject series that appear in your dashboards and alerts. Teams often leave the port open on a flat network because senders are on the same subnet, which turns a metrics path into a data integrity risk. Prevention: restrict the listening address and UDP port to known sender hosts with firewall rules, use TLS where the sender supports it, and alert on unexpected new series names.

Default UDP port
9122

Questions teams ask before moving InfluxDB metrics to Prometheus

Can our own team move InfluxDB line protocol metrics to Prometheus without a partner?

Yes, if someone on the team can run the exporter, read the sender configuration and map tags to labels with care. The influxdb_exporter is an official Prometheus project that listens for line protocol over HTTP and UDP, so the mechanics are not the hard part. The work that usually stalls in-house is inventorying every sender, deciding which tags become labels, checking cardinality, and rebuilding dashboards and alert rules that depended on InfluxDB query behavior. Teams with a clear inventory and a monitoring owner often manage it themselves. Teams without one often benefit from a fixed-scope engagement that agrees deliverables in writing first.

What drives the effort and cost of an InfluxDB to Prometheus move?

The main drivers are the number of senders, how many distinct tag sets they emit, how many dashboards and alerts read from InfluxDB, and whether any senders use field types or timestamps that need conversion. Each of these adds review and testing time. Costs have two parts: the people doing the work and the infrastructure that runs Prometheus and the exporter. Prometheus itself is licensed under Apache-2.0, so there is no license fee for the project. When requesting a quote, ask for the work broken into inventory, mapping, sender changes, dashboard and alert rebuilds, verification, and handover, with each item tied to a named deliverable.

How long does a move like this usually take?

Duration depends on the same factors as effort: sender count, tag complexity, the number of dashboards and alert rules, and how many teams must sign off on changes. Parallel running, where Prometheus receives the same data as InfluxDB while teams compare results, usually adds time because it needs a defined comparison period. No supplied benchmark gives a fixed duration, so ask for a timeline tied to the inventory output and to agreed cutover criteria, and confirm which sender changes depend on other teams' release schedules.

What must our team provide before the work starts?

The team needs to provide sender configurations, such as Telegraf config files and any scripts or applications that write line protocol, plus a list of every dashboard, alert and report that reads from InfluxDB. It also helps to provide the InfluxDB version in use, the write endpoints each sender calls, sample payloads with their tags and fields, retention expectations, and the people who approve cutover. Missing any of these usually surfaces as rework later. Confirm access to the sender hosts, the network path to the exporter, and a test environment where changes can be replayed safely.

Can our InfluxDB history be moved into Prometheus?

Historical data can be imported in principle, but it is a separate piece of work from the live exporter. The influxdb_exporter accepts new writes; it does not replay old data. Backfilling requires exporting history, converting it into a format Prometheus can ingest, and creating blocks, which is covered in a separate topic. Many teams decide that keeping InfluxDB read-only for historical dashboards is simpler than migrating all history. Decide which periods matter for capacity reviews, incident analysis and audits, and confirm that decision before scoping the backfill.

Is the influxdb_exporter the right long-term choice, or should we re-instrument?

The exporter is a reasonable bridge when many existing senders cannot change quickly. It is less suited to the long term when applications can be instrumented with a Prometheus client library, because native metrics give clearer names, typed metrics and better control over labels. Re-instrument when a service is actively developed, when its tags have high cardinality, or when its metrics drive alerts you need to trust. Keep the exporter for legacy senders that are stable. Plan a review date for each sender so the bridge does not become permanent by default.

Does Prometheus guarantee every InfluxDB point arrives?

No. The Prometheus documentation says the project values reliability over precision and is not a good choice where 100% accuracy is required, such as per-request billing. Metrics pulled or pushed into Prometheus can be dropped or delayed under load, and a bridge adds another hop. Before cutover, confirm which measurements feed compliance evidence or billing, and decide whether those stay in a system built for exact records. Testing should compare totals and alert behavior between the two systems during parallel running.

How DeployOpen scopes and delivers an InfluxDB to Prometheus migration

DeployOpen starts with a written scope that lists every InfluxDB line protocol sender, its tags and fields, and the dashboards and alerts that depend on it. We then build the influxdb_exporter path, test it against live senders, and hand over the configuration, runbook and verification evidence so your team can run it.

How we scope

  • We inventory every Telegraf and line protocol sender, its target endpoint, and the write rate it produces.
  • We map each measurement, tag and field type to a planned Prometheus metric name and label set.
  • The written scope covers agreed deliverables and timelines. Engagements are fixed-scope, and ongoing support is available as a retainer.

How we build

  • We deploy influxdb_exporter in your infrastructure, configured for the v2 endpoints your senders already use.
  • We test timestamp handling, float, int and boolean field conversion, and label cardinality against real sender output.
  • We wire Prometheus scrape jobs, recording rules and alert rules, and check that existing Grafana panels return matching results.

How we hand over

  • You receive the exporter and Prometheus configuration as files, with the mapping table from InfluxDB fields to Prometheus metrics.
  • We document the cutover steps, the rollback path, and which senders still need to be redirected by your own team.
  • Test results, known differences from InfluxDB queries, and open items are recorded in the handover report.

How we support

  • After handover, we can retest the pipeline when senders, exporter versions or Prometheus releases change.
  • Retainers cover upgrades, continuous testing and support for the exporter and the Prometheus configuration.
  • We recommend confirming the exporter release you plan to run against the Prometheus release line your organization supports.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.