Migrating from Graphite to Prometheus

Moving from Graphite to Prometheus is mainly a change in how metric names become labels and how alerts and dashboards are rebuilt. This page explains what maps cleanly, the documented bridge through graphite_exporter, and the work that decides cost and timing.

On this page

Migrating from Graphite to Prometheus starts with the metric names

The bridge from Graphite to Prometheus is the official graphite_exporter, which accepts Graphite plaintext protocol data over TCP and UDP and exposes it for Prometheus. Existing senders can keep writing to their current setup while you point the monitoring side at port 9109. The real effort is not the transport. It is mapping dotted names such as servers.web01.cpu.load to Prometheus metric names and labels, then rebuilding the Graphite dashboards and alerts that depend on the old names. Plan the work around those two tasks, not around the exporter installation.

Prometheus is licensed under Apache-2.0, so there is no license fee to pay for the project itself. Your costs are the infrastructure to run Prometheus and its storage, plus the people who implement the mapping, rebuild the alerts and operate the result. Those costs depend mostly on the number of metric families and alert rules in your Graphite estate, and nobody can estimate them until that number is known. Before you request a quote, export the list of metric paths your senders produce, group them by pattern, and count the dashboard panels and alert rules that read each group. A partner can then scope the mapping rules and rebuild work from that inventory rather than from an assumption.

Confirm two things early. First, which senders use the plaintext protocol over TCP and which use UDP, since UDP drops data silently under load and changes how you judge gaps in history. Second, whether any Graphite functions in your dashboards or alerts, such as aggregations over wildcards, have no direct PromQL equivalent, so you know which panels need redesign rather than a query swap. The graphite_exporter repository documents the supported mapping configuration, and that file is the first thing your team should test against a sample of real metric paths.

What maps from Graphite to Prometheus and what does not

This table compares the Graphite concepts your team relies on today with their Prometheus equivalents and marks where graphite_exporter mapping rules carry the work and where the design changes. Read each row against your current Carbon, Whisper and Grafana setup, and treat the last rows as the places that need planning before cutover.

Graphite conceptPrometheus equivalentWhat changes in practice
Dotted metric path (e.g. app.web01.latency.p99)Metric name plus labelsgraphite_exporter mapping rules split dotted segments into labels, so the path structure must be designed before you map it.
Plaintext sender over TCP or UDPgraphite_exporter receiving on port 9109Existing senders can keep their protocol and target, but the exporter exposes data for Prometheus to scrape rather than storing it.
Carbon retention schemes in whisper filesLocal TSDB with time or size retentionPrometheus defaults to 15 days of local retention, so longer Graphite history needs a planned long-term store or backfill.
Graphite push model into CarbonPull scraping from targets and exportersPrometheus pulls from the exporter, so firewall rules and service discovery for the exporter must be set up explicitly.
Wildcard and function queries (e.g. sumSeries, averageSeries)PromQL aggregations over labelsWildcards on flat names must be rewritten as label selectors, so dashboard queries need redesign, not a copy.
Grafana panels reading the Graphite datasourceGrafana panels reading a Prometheus datasourceEach panel must be rebuilt against the new metric names and labels, and panel titles often hide which series they use.
Thresholds in alerting scripts or Nagios-style checksPromQL alert rules evaluated by PrometheusAlert conditions need rewriting in PromQL, and Alertmanager routing replaces script-level notification logic.
Metrics that need exact per-event accuracySampled, reliability-focused metricsPrometheus documents that it is not suited to 100% accuracy needs, so event-level counts may need a different system.
Metrics emitted by application code with dotted namesNative client library instrumentationWhere names and labels are weak, re-instrumenting with a client library is often the better path than mapping rules alone.

Documented paths for moving Graphite data and senders

Moving from Graphite to Prometheus usually splits into three separate jobs: keeping existing senders working, reading their data into Prometheus, and bringing history across. The official graphite_exporter covers the first two, while historical data needs its own path. Each card below marks a decision or check for that work.

Official graphite_exporter as the bridge

The graphite_exporter is the official Prometheus project that accepts Graphite plaintext protocol data over both TCP and UDP and exposes it for Prometheus to scrape. It lets you keep existing Graphite senders in place while you move dashboards and alerts. Check that your senders use plaintext rather than pickle or another format, and confirm the protocol options in the repository before you commit to this path. Plaintext senders are the only input this bridge accepts.

Exporter port
9109
graphite_exporter repository

Repointing existing senders

Existing Graphite senders, such as StatsD backends, collectd write plugins, or application code, usually need only a destination change to send to the exporter on port 9109. Confirm the host, port, and transport (TCP or UDP) each sender uses, since UDP drops data silently under load. Run the exporter alongside the current Graphite pipeline for a period so you can compare values before retiring the old receiver.

Mapping dotted names to labels

Graphite metric names are dotted paths such as a host, service, and metric name joined by periods. Prometheus works best with a metric name plus labels, so the exporter needs a mapping configuration that splits each path into named labels. Plan the mapping before rollout, because a poor mapping produces high-cardinality or hard-to-query series. Confirm the exact mapping syntax, match rules, and options in the repository, and test each pattern against real sender output.

Prometheus scrape job for the exporter

Prometheus reads the exporter through an ordinary scrape job that points at the exporter's HTTP endpoint, so the exporter must be reachable from the Prometheus server and kept on a network you control. Set the scrape interval and job name to match your existing dashboards and alert rules. Add the exporter's own health metrics to your monitoring so you notice when Graphite input stops arriving.

Backfilling historical Graphite data

The graphite_exporter only handles data as it arrives, so it does not import the history already stored in Whisper files or your Graphite database. Historical data needs a separate backfilling path, which converts exports into a format Prometheus can ingest. Decide early whether old data must stay queryable in Prometheus or whether keeping the Graphite archive for reference is enough, since this choice drives the effort and the retention you need.

Replacing dashboards and alert rules

Graphite dashboards and alerts reference dotted paths and functions that need rewriting as PromQL queries against the mapped labels. Rebuild each alert with its own threshold and duration, then compare results during the parallel run. Treat this as a rewrite rather than a copy, since Graphite functions such as moving averages and summaries do not map one to one.

How the Graphite cutover sequence runs in practice

The sequence moves Graphite senders, dashboards and alerts to Prometheus in controlled stages, so each stage has a verifiable exit check before the next one starts. The end state is Graphite retired with every consumer of its data accounted for.

  1. Inventory senders, metric names and dashboards

    Your team lists every system that writes plaintext metrics to Carbon, every metric namespace those systems produce, and every dashboard, alert and script that reads from Graphite. Export the metric name list from Carbon storage or the whisper tree and group it by sender. The step is done when every sender has an owner and every dashboard panel and alert rule maps to a metric name, so nothing that reads Graphite is unaccounted for.

  2. Run a pilot with one sender group

    Point one low-risk sender group at graphite_exporter on port 9109 while it keeps writing to Carbon as before, so the sender config changes in one place only. Add a Prometheus scrape job for the exporter and confirm samples arrive with the expected names. The pilot is done when the sender's series are visible in Prometheus and the exporter's own metrics show no unexpected drops.

  3. Design and validate mapping rules

    Write the mapping rules that turn dotted Graphite names into a metric name plus labels, starting with the pilot's names and then widening. Feed sample names from the inventory through the rules and check the output for label cardinality, collisions between names that now share a metric, and labels that encode values such as hostnames in a way that will grow without limit. The step is done when a fixed sample set produces the series you expect and a reviewer has signed off on the label scheme.

  4. Parallel run with Graphite still receiving data

    Keep Carbon receiving every sender while Prometheus receives the same data through the exporter, so both stores hold the same window. Compare values for a sample of series in Graphite and Prometheus over the same period, and note any gaps caused by timestamp handling, aggregation differences or dropped UDP packets. The step is done when the differences are explained and accepted, and the team agrees on which values are authoritative for each dashboard.

  5. Rebuild dashboards and PromQL alert rules

    Recreate each Graphite dashboard panel as a PromQL query and each Graphite alert as a Prometheus alert rule, then route alerts through Alertmanager so notification behavior is defined in one place. Run the new alerts alongside the old ones and record which fire. The step is done when every inventoried dashboard and alert has a counterpart, and each pair has been reviewed for matching thresholds and time windows.

  6. Cut over and confirm no readers remain

    Switch dashboards, alert consumers and scripts to Prometheus, then stop Carbon's use by senders only after the parallel run has shown acceptable results. Check Carbon's receive counters and the query logs or access records of Graphite's web interface to confirm nothing still reads from it. The cutover is done when Carbon receives no traffic that anyone depends on and every reader has moved.

  7. Retire Carbon and Graphite storage

    Once the cutover check is clean, stop the carbon and Graphite web services, then decide what happens to the whisper files. Archive them according to your retention policy or export the history you need, and document where it lives. The step is done when the services are stopped, the archive location and access controls are recorded, and the decommission is written into your change log.

How Graphite senders reach Prometheus during the transition

The diagram starts with existing Graphite senders, which keep their plaintext format and are pointed at graphite_exporter on port 9109 instead of the old Graphite store. The exporter accepts that data over TCP and UDP and exposes it as metrics that Prometheus scrapes. Dashboards and alert rules are written in PromQL against the Prometheus store, while a parallel path keeps feeding the legacy Graphite store until cutover. Check that both paths receive the same samples during the overlap, so the comparison is valid before anyone retires the old store.

Senders feed both the exporter path and the legacy Graphite store during cutover.

What drives the cost and duration of the move

This table lists the factors that set the effort and running cost of a Graphite to Prometheus move, with the cost type and what to ask for in a quote. Read each row as a question to answer about your own estate before requesting a fixed-scope quote. The main takeaway is that naming patterns, sender count and dashboard volume drive most of the work, while infrastructure and operations drive the recurring cost.

DriverWhy it changes cost or effortHow to keep it down or what to ask for
Distinct metric naming patternsEach dotted pattern needs a mapping rule that turns path segments into labels, and unusual patterns need testing against real samples.Export the full list of name patterns and ask the quote to state how many mapping rules are assumed.
Number of senders and their configurationEvery host or application that sends plaintext metrics must be repointed to port 9109 and verified, and each sender's settings add checks.Inventory senders by owner and config method, and ask which are changed by configuration management versus by hand.
Graphite dashboards and alert scriptsEach dashboard needs its queries rewritten in PromQL, and each alert script needs a rule, routing and a test.Count dashboards and alert scripts, mark those still used, and ask whether retired ones are excluded from scope.
Need for native instrumentation changesSenders that should move to native client libraries require code changes, builds and deployments beyond the exporter path.Decide per service whether the exporter bridge is enough, and ask the quote to separate bridge work from re-instrumentation.
Length of the parallel runRunning Graphite and Prometheus side by side keeps two stacks, two sets of alerts and comparison checks in operation until cutover.Agree exit criteria for each dashboard and alert up front, and ask how long the parallel run is assumed to last.
History requirementsBackfilling old data adds conversion, validation and storage work, and not all history will map cleanly to the new model.Decide which history is needed for capacity or audit, and ask whether backfilling is in scope or left to the team.
Internal Prometheus operations skillsTeams without experience in PromQL, storage tuning and Alertmanager need training or ongoing support, which adds effort and recurring cost.Rate the team's skills honestly and ask the quote to name training, handover and post-cutover support as separate items.
One-time versus recurring infrastructurePrometheus runs on your own servers, so disk for retention, memory and backups are recurring costs, and they grow with series count and retention period.Ask for the sizing assumptions behind storage and memory, and confirm retention period with your compliance owners before sizing.

What usually goes wrong in a Graphite move and how to prevent it

Most failed Graphite moves do not fail on day one. They fail quietly: a label set grows until the server struggles, a dashboard shows a different picture than before, or an alert stops firing and nobody notices. Each risk below has a specific check you can run before cutover, so the move is verified rather than assumed.

Label cardinality explosions

Mapping every dotted segment of a Graphite name to its own label looks tidy, but a segment carrying a user ID, request path or host-plus-port value creates a new series for each value. Before cutover, list the distinct values each proposed label takes over a representative week of traffic. Drop or aggregate any label with unbounded values, and keep the mapping rules in version control so changes are reviewed.

Lost wildcard semantics in dashboards

Graphite target expressions such as wildcards, sumSeries and groupByNode do not translate one for one. A panel that summed every host under a path in Graphite may plot a single series in Prometheus if the label layout differs. Rebuild each panel from its Graphite target, compare the two outputs over the same window, and record which panels were redesigned rather than copied.

Alerts that silently stop firing

A Graphite alert that matched a wildcard may match nothing after the rename, and Prometheus will not warn you that a rule evaluates to an empty result. Treat an empty result as a failure: write a test that each migrated rule returns data from the new store, and review the alerting setup with your team before retiring the Graphite alerts they replace.

UDP packet loss during relay

Graphite plaintext senders often use UDP for speed, and UDP gives no delivery guarantee. The graphite_exporter accepts both TCP and UDP, so a sender that drops packets under load will show gaps that look like a monitoring problem. Where you can, move senders to TCP, measure loss on the relay path during a parallel run, and compare counts against the old Graphite receiver before you cut over.

graphite_exporter repository

Local storage treated as replicated

Prometheus local storage is a single-node database. It is not clustered or replicated, so a lost or corrupted disk loses the history on that server. Teams that moved from a Graphite cluster often assume the new server is protected the same way. Plan backups of the data directory, add a second Prometheus scraping the same targets if you need redundancy, and confirm the restore procedure before relying on the data.

Prometheus storage docs

Default retention mistaken for history

Prometheus keeps data for 15 days by default, which is far shorter than many Graphite retention schemas. A team that assumes the new system holds years of history will discover the gap during an incident review or capacity planning exercise. Set retention deliberately by time or size, decide which history must be backfilled or kept in long-term storage, and check the retention setting against your audit and capacity needs.

Questions teams ask before moving from Graphite to Prometheus

How long does a Graphite to Prometheus move take, and what drives the timeline?

The timeline depends mostly on how many dashboards, alert rules and sender configurations depend on Graphite, and on how many teams must sign off on changes. A move with a small set of senders and a few dashboards is much shorter than one where every service writes dotted names that feed dozens of panels. Ask any partner for a written schedule tied to a scope list: the count of senders, dashboards, alerts and metric name patterns that need mapping. Parallel running adds time because both systems must agree before Graphite is retired. Ask for milestones for each of these phases before work starts.

What does a Graphite to Prometheus move cost beyond licensing?

Prometheus is licensed under Apache-2.0 and has no paid enterprise edition, so the cost is in infrastructure, storage, implementation and people. Infrastructure is recurring: servers or pods, disk for the time series database and any long-term store. Implementation is one-time: mapping names to labels, rewriting dashboards and alert rules, and testing. Staff time recurs as operations. Storage cost depends on retention, and local retention defaults to 15 days according to the Prometheus storage documentation, so keeping history longer means a separate long-term store. Ask for a quote that separates one-time work from recurring infrastructure and support.

Can our own team migrate from Graphite to Prometheus without a partner?

Yes, a capable platform team can do it, especially if the Graphite estate is small and well documented. The hard parts are rarely the exporter setup. They are the naming decisions: turning dotted paths into labels without creating high cardinality, and rebuilding alerts so they fire on the same conditions. Teams without PromQL experience, or without spare capacity during parallel running, often find a partner shortens the project. Decide by counting your senders, dashboards and alerts, and by checking whether the people who know Graphite naming can spend time on the mapping.

What do our engineers and dashboard owners need to contribute?

Engineers must confirm which metric paths are used, which senders emit them, and what each alert is meant to detect. Dashboard owners must list the panels they rely on, the time ranges they read and the people who use them. Both groups should review the label mapping, because a mistake in naming is expensive to correct after dashboards are rebuilt. Plan for review time in each cycle, and name one owner per dashboard to approve the replacement before the Graphite version is removed.

Can we keep our Graphite history after moving to Prometheus?

History can be kept, but it requires a deliberate backfill step. Prometheus local retention defaults to 15 days, so older Graphite data will not stay in the server without extra work. Teams usually export historical series, convert them into a format Prometheus can ingest and keep old Graphite data available for reference until dashboards no longer need it. Confirm with your partner or your own engineers which periods must be queryable in Prometheus, which can remain in an archive, and how long the old system must stay readable.

What happens to our existing Graphite senders during the move?

The graphite_exporter accepts Graphite plaintext protocol data over TCP and UDP and exposes it for Prometheus, so existing senders can keep pushing without changes at first. Monitoring is pointed at port 9109. Senders continue to write to Graphite during parallel running, and you decide when each one is switched. Changes in naming are handled in exporter mapping rules, so dotted names become labels. Confirm the sender list, protocol (TCP or UDP) and delivery expectations before cutover, since UDP can drop data under load.

Is Prometheus accurate enough to replace Graphite for every metric?

Prometheus values reliability over precision, and its documentation says it is not a good choice where 100% accuracy is required, such as per-request billing. Review each Graphite metric before moving it. Metrics used for capacity and operational alerts usually fit well. Metrics used for billing, contractual reporting or audit records may need a different system or an exact record kept elsewhere. Ask your compliance and finance owners to classify these metrics first.

Keeping Graphite history after cutover

graphite_exporter handles live data only, so history needs a separate path. Once existing senders point at port 9109, new samples land in Prometheus, but the Graphite data already on disk does not move with them. Treat the cutover and the history migration as two workstreams with two owners. The first keeps dashboards and alerts fed from the day senders switch. The second decides what old data is brought over, in what form, and where it lives afterward. Prometheus local storage is not a long-term archive: its default retention is 15 days, and the storage documentation describes local storage as a single-node store that is not clustered or replicated. Any history older than that window will not survive in Prometheus unless you configure a longer retention, add remote write to external long-term storage, or bring it in through backfilling.

Start with a decision, not a tool. Ask the audit and capacity planning owners which Graphite series they actually rely on, how far back they look, and whether they need raw resolution or downsampled trends. A quarter of capacity history for a few hundred hosts is a very different job from a decade of per-request timers. Map each required series to one of three outcomes: retained in Graphite under a read-only archive, backfilled into Prometheus through promtool, or dropped with a documented sign-off. Confirm the retention and archive requirements in your own policy and with your auditors, since DeployOpen does not set them. Keep the Graphite instance and its storage running read-only until that inventory is signed off.

Plan the archive before the cutover date so the decision is not made under pressure. Record where each archived dataset lives, who can query it, how long it is kept, and how a reviewer would reach it during an investigation. If you choose remote storage for Prometheus, confirm its retention and access controls as part of the same review. Document the boundary between the two sources in your dashboards, so an engineer comparing last year with this week knows which panel reads which store.

How DeployOpen works on this

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, so the Graphite to Prometheus migration runs in your cloud accounts, data centers or air-gapped network. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • We inventory every Graphite sender, carbon relay, dashboard and alert that must keep working during cutover.
  • The written scope lists which metric families map to labels, which senders feed port 9109, and which history is backfilled.
  • Each engagement is fixed-scope, so deliverables and timelines are agreed in writing before work starts.

How we build

  • We deploy graphite_exporter and Prometheus in your environment, pointing existing senders at port 9109 for parallel running.
  • We design the dotted-name mapping rules that turn Graphite paths into labelled series, then test them against sample traffic.
  • We rebuild dashboards and alert rules in PromQL and compare results against the Graphite originals before cutover.

How we hand over

  • You receive the mapping rules, configuration, dashboard and alert inventory, and a record of each comparison test.
  • We document the cutover sequence, rollback steps and the decommissioning checklist for the Graphite servers.
  • Your operators are walked through running Prometheus, including storage limits and how the retained history was loaded.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover Prometheus version upgrades and review of new mapping rules as additional senders move over.
  • Confirm with us during scoping which support level, response arrangements and access model your team needs.

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.