Grafana migration from Kibana, Datadog or another Grafana

A Grafana migration moves dashboards, queries and alerts to a self-hosted instance that you control. Most of the effort is rebuilding queries and alert logic for new data sources, not copying panels, so scope it from the query inventory.

On this page

When a Grafana migration from Kibana, Datadog or another Grafana is worth the effort

A migration is worth planning when your dashboards and alerts sit in a commercial tool you want to leave, in an older Grafana still running on SQLite, or in a second Grafana instance you want to consolidate. Teams in regulated environments usually have one more pressure: they need to show where operational data is queried, who can see it and how alerts are routed, and an inherited setup often cannot answer those questions cleanly. Before deciding, list every dashboard, alert rule, contact point and data source connection, and note which ones are used weekly and which have not been opened in a year. That inventory sets the real size of the work.

Panel layouts move easily, but the parts that carry operational meaning do not. Queries must be rebuilt against the data sources you actually run, whether that is Prometheus, Loki, Elasticsearch, a SQL database or a cloud metrics service, because each one uses its own query language and label or field model. Alert rules have to be re-expressed in Grafana Alerting, with their thresholds, evaluation windows, notification routing and mute timings checked against what the old tool did. Data source access also has to be redesigned: service accounts, credentials, network paths and folder permissions all need a home in the new instance. Teams usually split this work between an in-house platform team and a partner, with the in-house team owning the decisions about which alerts still matter and a partner or specialist handling the query and rule rebuild in volume.

For a migration from an older Grafana, the database move is a separate decision. Grafana stores configuration in SQLite by default, and its installation documentation says SQLite does not scale for production, so moving to MySQL 8.0 or later or PostgreSQL 12 or later is required before high availability. Confirm which Grafana version and database you run today, which plugins are installed, and whether dashboards are already managed as code, because those answers change the migration path. A quote should state which of these items are in scope, and which parts of the cutover, such as parallel running and the alert switchover, are included.

What a Grafana migration includes and what you receive at the end

A migration moves working dashboards and alerts from Kibana, Datadog or another Grafana onto a self-hosted instance without losing the behavior your on-call and operations teams depend on. Each work package below ends in a named deliverable, and the scope, deliverables and timeline are agreed in writing before work starts.

Inventory of dashboards, queries and rules

Every source dashboard, panel query, alert rule, contact point and notification route is listed with its owner, its data source and its last-viewed date. The inventory is the basis for scope, because dashboards nobody opens are usually retired rather than rebuilt. Ask for the inventory before agreeing a fixed price, and confirm which items your teams consider business critical. Scope changes after this point should go through a written change request.

Data source setup on self-hosted Grafana

Each source system is connected to your new Grafana instance with its own service account, read-only permissions and network path. Credentials are stored in Grafana's secure settings, not in dashboard JSON. Deliverable: a data source register listing type, endpoint, owner and credential rotation date. Confirm which data sources sit behind firewalls or private endpoints, since those paths are a common source of delay.

Query rebuilding for new data sources

Kibana queries, Datadog metric expressions and Grafana queries do not translate one for one. A rebuilt panel is checked against the original over the same time window, so teams can confirm the numbers match before the old view is retired. Deliverable: a rebuilt dashboard set with a mapping sheet showing the source query and its replacement for each panel. Ask how mismatches are logged and who signs off on each dashboard.

Alert conversion to Grafana Alerting

Source alert rules are rewritten as Grafana Alerting rules with their thresholds, evaluation intervals, pending periods and routing. Every converted rule is tested against a known condition so a silent failure is caught during the parallel run. Deliverable: a rule set with a conversion log that marks rules dropped, merged or changed, with the reason for each. Confirm who approves retired alerts.

Database move to MySQL or PostgreSQL

If the new instance starts on SQLite, its configuration and state move to MySQL 8.0 or later, or PostgreSQL 12 or later, before production use. The Grafana installation docs state SQLite does not scale for production, so this step is required where high availability is planned. Deliverable: a tested database migration with backup and restore evidence. Confirm the database version your platform team supports and who operates it afterward.

Grafana installation docs

Parallel run and cutover

Both the old and new views run side by side for an agreed period while on-call staff compare alerts and dashboards. Cutover switches notification routes, bookmarks and runbook links only after the comparison signs off. Deliverable: a cutover plan with a rollback step, a parallel run log and a sign-off record. Ask who can trigger rollback during the parallel run and how long the old system stays readable.

Handover and runbook

Your operations team receives documentation covering the deployed architecture, provisioning files, alert ownership, backup and restore steps and the upgrade path. The handover session walks through common changes so your staff can make them without a partner. Deliverable: a runbook and a recorded or live handover session. Confirm whether provisioning files live in your own repository from day one.

What drives the cost and duration of a Grafana migration

This table lists the factors that change how much work a move to self-hosted Grafana takes and how long it runs. Read each row as a lever: the first column names the driver, the middle column explains the effort it adds, and the last column gives the step that keeps it down. The biggest savings usually come from cutting scope before the move starts, not from working faster during it.

DriverWhy it adds effortHow to keep it down
Number of dashboards and panelsEach dashboard must be rebuilt, checked against the old view and signed off by its owner, so effort grows with panel count and layout complexity.Inventory usage first and retire dashboards nobody has opened recently before migrating anything.
Number of source tools and data sourcesKibana, Datadog and other Grafana instances each bring their own connectors, and each one needs a matching Grafana data source with credentials and network access.Map every data source to a target, and consolidate duplicates such as several copies of the same database connection.
Query language differencesKibana queries, Datadog query syntax, PromQL, LogQL and SQL have different semantics for aggregation, time windows and label handling, so panels rarely translate one for one.Group panels by query language and translate in batches, validating each batch against known good values from the old tool.
Number and complexity of alert rulesAlert conditions, evaluation intervals, notification routing and mute timings must be recreated in Grafana Alerting and proven to fire on the same conditions.Remove stale or duplicate rules, and test each rule with a controlled condition before the old alert is disabled.
Number of users, teams and foldersFolder structure and permissions must be mapped from the source tool, and each team's access must be checked after the move.Design a target folder model before migrating, and migrate permissions by group rather than user by user.
Identity integrationSign-in through LDAP, generic OAuth, Entra ID, Okta or another provider needs configuration, testing and role mapping, and SAML or team sync depends on the edition chosen.Confirm the identity method and role mapping early, and check which features your chosen edition supports.
Number of environmentsDevelopment, staging and production each need their own data sources, provisioned objects and checks, so every environment repeats part of the work.Provision dashboards and data sources from files so that environments share one definition instead of separate manual builds.
Compliance evidence needsAssessors may ask for records of who had access, how alerts were changed and how the cutover was approved, which adds documentation and logging work.Agree the evidence list at the start and capture it during the work, not after cutover.
Single instance or high availability targetA high availability target needs MySQL or PostgreSQL, a load balancer, and alerting configured to avoid duplicate notifications, while a single instance can start on a simpler database setup.Confirm the availability requirement before design, since SQLite does not scale for production and HA needs a shared database.

Grafana migration phases and the output of each

The sequence moves dashboards, data source queries, alert rules and stored configuration from Kibana, Datadog or another Grafana into a self-hosted instance in a controlled order, so each phase produces an artifact the client can review before the next one starts. Duration depends on how large the inventory is, and the written scope fixes it.

  1. Inventory existing dashboards, alerts and data sources

    DeployOpen and your team list every dashboard, saved query, alert rule, notification channel, data source, user group and folder in the source tool, then record which ones are used, owned and tied to an on-call process. Unused or duplicate items are flagged for retirement rather than carried over. The output is a migration inventory spreadsheet with a disposition for each item: rebuild, convert, merge or retire, and the named owner who signs off.

  2. Design the target Grafana environment

    The team decides which data sources the new instance will query, which database backs configuration (MySQL 8.0 or later, or PostgreSQL 12 or later, since SQLite is not recommended for production), how users will sign in through your identity provider, and how many instances and what sizing the expected user count requires. The output is a target architecture document and a decision record for each open choice, which becomes the basis for the build.

  3. Build the new Grafana instance

    DeployOpen installs Grafana in your infrastructure using your chosen packaging or container method, connects the production database, configures identity, and sets security baseline settings such as TLS and disabled anonymous access. Data sources and folders are defined through provisioning files where possible so the configuration can be reviewed and reproduced. The output is a working staging instance and a build record listing versions, settings and access paths.

  4. Rebuild queries and dashboards for the new data sources

    Each inventoried dashboard is recreated against the new data sources. Kibana searches become Loki or SQL queries, Datadog metrics map to Prometheus or other supported sources, and panels, variables and thresholds are rebuilt rather than copied blindly. Your domain owners compare panel results against the source tool for the same time range. The output is a set of rebuilt dashboards with a signed-off comparison log showing where values match and where differences were explained.

  5. Convert alert rules and test notifications

    Alert rules are translated into Grafana Alerting rules, with contact points and notification policies that reproduce the existing routing. Each alert is tested with a controlled condition, and every receiver (paging, chat, email, ticketing) is confirmed to deliver. Mute timings and silences that exist in the old tool are recreated where still needed. The output is a conversion matrix mapping each old alert to its new rule, with test evidence for each notification path and the owner who accepted it.

  6. Move database and configuration to production

    Configuration, users, folders, dashboards and alert state are moved to the production database, and the instance is verified against the staging results. Any settings that differ between environments are documented and reviewed. For high availability, the design from the earlier phase is applied, including the extra alerting configuration needed to avoid duplicate notifications. The output is a production instance and a verification report confirming counts, access and alert evaluation match the inventory.

  7. Run in parallel and cut over

    Both tools run side by side while on-call and dashboard users check the new instance against the old one, and any gaps are logged and fixed. Once the agreed exit criteria are met, notifications are switched to Grafana, the old tool stops sending alerts, and users receive links to the new dashboards. The output is a signed cutover record with the exit criteria, the switch time, and the parallel-run issue log showing every item closed.

  8. Decommission the old tool and hand over

    After the retention and rollback window in the written scope closes, the old tool is turned off, its data exports are archived according to your records policy, and credentials and integrations are revoked. Runbooks, provisioning repository access and support contacts are handed over to your team. The output is a decommissioning certificate listing what was removed, where archives are stored, and the runbook set your team now owns.

Moving Grafana from SQLite to MySQL or PostgreSQL during migration

Grafana keeps its configuration in SQLite 3 by default, and the installation docs state that SQLite does not scale for production. If your migration target is a production or highly available Grafana, plan the move to MySQL 8.0 or later, or PostgreSQL 12 or later, as a named work item rather than an afterthought. Confirm the exact migration path for your current Grafana version in the Grafana installation documentation before you schedule anything, because the supported steps depend on the version you start from and the version you land on.

The database holds the state your users will notice first: user accounts, teams, folders and folder permissions, dashboards and their versions, data source definitions and credentials, and alert rule and alert state records. Inventory each of these in the current instance and decide what must match exactly after cutover. Pay particular attention to alert state, since a fresh alert database can cause rules to re-evaluate from a clean state and send notifications you did not expect. Also check whether any dashboards or alerts were created during the migration window and will be lost if you freeze the source too late. Ask your team or partner to document the record counts before and after the move so the comparison is evidence, not memory.

Changing the backing store is a cutover risk in its own right, separate from the dashboard and alert rebuild happening in the same project. Keep the SQLite file as a rollback point, stop writes to the old instance during the final copy, and run a timed test import against a copy of production data first. Because the database becomes shared, plan high availability at the same time: multiple active-active Grafana servers behind a load balancer need a common MySQL or PostgreSQL database, and the docs note that alerting needs extra configuration to avoid duplicate notifications. Decide the database topology, backups and failover before cutover, so you do not migrate onto a single database server that becomes the new single point of failure.

How the source tool changes the migration work

Kibana usually holds log searches, saved queries and alert rules that depend on Elasticsearch indices, fields and the Lucene or KQL-style query syntax. The searches carry over as intent, but each one has to be re-expressed against the Grafana data source that holds the logs, such as Loki or an Elasticsearch data source, because query languages and field handling differ. Kibana alerting rules also need to be rebuilt as Grafana Alerting rules with their own contact points and notification policies.

  • Reusable: the questions your teams ask, the field names, time ranges and the list of saved searches that people actually open.
  • Rebuild: each saved search as a query in the target data source, and each Kibana alert rule as a Grafana alert rule with its own evaluation and routing.
  • Rebuild: log visualizations, since Kibana Lens panels do not map one to one onto Grafana panels.
  • Verify: that each rebuilt query returns the same matching events for a fixed time window, including edge cases with missing fields or multi-value filters.
  • Verify: that alert thresholds fire on the same historical samples and that notifications reach the same people.

Confirm with the team that owns each saved search which ones are still in use before you rebuild anything.

What goes wrong in Grafana migrations and how to prevent it

Most Grafana migration problems come from changes nobody checked: alert logic that evaluates differently, routing that quietly drops a receiver, and dashboards that disagree with the source system. Each risk below has a prevention step that can be tested before the old system is switched off.

Alerts that fire differently after conversion

A Kibana, Datadog or Grafana alert rarely carries over one to one. Thresholds, evaluation windows, no-data handling and grouping can change when the query is rebuilt against a new data source. Compare each converted rule with its original on the same historical data, and check that the rule fires on known bad conditions and stays quiet on normal ones before trusting it in production.

Silent gaps in notification routing

Contact points, routing trees and mute timings are often rebuilt by hand, and a single missing label matcher can send a critical page nowhere. Export the source routing rules, map every receiver, and send a test notification through each path. Confirm who receives what, including after-hours escalations, and keep the signed-off routing table with the change record.

Dashboards that show different numbers

Dashboards can disagree with the old system because a query changed, a time zone or aggregation interval differs, or a unit was misread. Panels that look correct may still be wrong by a small margin. Pick a set of business-critical panels, run old and new side by side over the same window, and document every accepted difference so reviewers know what changed on purpose.

Permissions and folder structure lost

Migrating dashboards without their folders, team assignments and role grants can expose internal dashboards to the wrong people or lock out the teams that depend on them. Record the existing access model before the move, recreate folders and permissions as code where possible, and check that each team can open its own dashboards and no others. Confirm how your identity provider groups map to Grafana roles.

Duplicate alerts in high availability

Once the new instance runs as two or more active-active servers, each node may evaluate the same alert and send a second notification. Grafana's high availability guidance says alerting needs additional configuration to avoid duplicate notifications. Before go-live, confirm the alerting deduplication settings in a staging cluster, then test a single known alert and count the notifications received.

High availability docs

No rollback path at cutover

A cutover without a tested way back leaves the team stuck if the new platform misses an alert or loses data. Write a rollback plan that names the trigger conditions, the owner who decides, and the steps to re-enable the old alert rules and routing. Keep the old system read-only and running in parallel for an agreed period, and rehearse the rollback in staging before the production date.

How data flows during a parallel run and cutover

The diagram starts with the same data sources feeding both the existing tool and the new self-hosted Grafana during a parallel run. Dashboards and alert rules are rebuilt on the Grafana side, then compared against the old tool's results for the same time windows. A go or no-go decision gates the switch of users and notification endpoints, and a rollback branch returns traffic to the old tool if the comparison fails. This is an illustrative cutover path, not a fixed process; your own comparison criteria and owners will differ.

Illustrative parallel run, comparison gate and cutover with a rollback branch.

Which parts of a Grafana migration teams keep in-house and which they outsource

A Grafana migration from Kibana, Datadog or another Grafana splits into decisions that depend on your own systems and tasks that depend on specialist query and database skills. The cards below show where each part usually sits, so your team can decide what to keep and what to hand to a partner.

Inventory and ownership decisions

Deciding which dashboards, alerts and data sources still matter, who owns each one and which can be retired is usually a client task, because only your teams know which views drive on-call work and reporting. Build a list with owner, consumer and last-viewed date for every dashboard and alert rule. Teams with a clear service catalog and existing owners can reasonably do this themselves in-house. Where ownership is unclear, expect the inventory to take longer than the technical move.

Rebuilding queries for new data sources

Kibana queries use KQL or Lucene, and Datadog uses its own query syntax, so each panel must be rewritten for the Grafana data source that holds the data, such as PromQL for Prometheus, LogQL for Loki or SQL for a relational database. Teams already fluent in those languages can port simple panels in-house. Outsourcing makes more sense when panels rely on aggregations, joins or label mapping that do not translate one to one. Validate each rebuilt panel against the source system's numbers before retiring the original.

Data source configuration and identity

Adding data sources, service accounts and the identity provider that controls who sees which folder is an administration task that needs knowledge of Grafana roles, folder permissions and your directory. Teams that already run an identity provider and manage Grafana admins can handle this in-house. Confirm which sign-in methods your edition supports before the move, since SAML and team sync are Enterprise-only features, according to the Grafana authentication docs.

Authentication docs

Alert conversion and notification routing

Converting Kibana watchers, Datadog monitors or existing Grafana alert rules into Grafana Alerting means mapping thresholds, evaluation intervals, contact points and notification policies, and deciding which duplicate alerts to drop. This work needs knowledge of both the source alerting model and Grafana's notification routing. A team that has run Alertmanager or Grafana Alerting can convert rules in-house. Plan a parallel run where old and new alerts fire side by side, and confirm the on-call paths before switching off the originals.

Database move to MySQL or PostgreSQL

A test or small instance may run on the default SQLite database, but the Grafana installation docs say SQLite does not scale for production, so moving configuration to MySQL 8.0 or later or PostgreSQL 12 or later is required for production and high availability. This needs database operations skills for backup, restore, permissions and failover. Teams with an existing managed database service can often do the migration themselves. Ask whether your standard database backup policy covers the Grafana schema.

Installation docs

Cutover planning and rollback

Scheduling the switch from the old tool to Grafana, setting a freeze window for dashboard edits, communicating with users and writing a rollback path is a coordination task that needs a named owner from operations and from each consuming team. Teams that run regular change reviews can plan cutover internally. Outside help is useful when the old system has many consumers or when you need a tested rollback. Agree the go or no-go criteria in writing before the first production cutover.

What you need to provide before a Grafana migration starts

The fastest migrations start with admin access to both sides: the source tool (Kibana, Datadog or the existing Grafana) with rights to export dashboards, saved searches, monitors and alert rules, and an admin account on the target Grafana environment where you can create data sources, folders and provisioning files. Without the source export, each dashboard is rebuilt by hand from screenshots, which is the slowest path. Confirm the export options your source tool offers, since they differ by product and version. Admin access to the target also lets the team test the install against your network, certificates and database before any dashboard depends on it.

Next, provide a data source inventory with a credentials plan. List every backend the dashboards query (Prometheus, Loki, Elasticsearch or OpenSearch, SQL databases, cloud monitoring APIs) with its endpoint, the query language used, and who owns it. Decide how credentials will reach Grafana: a secrets store, environment variables or a provisioning file that references them. Rotating credentials after the move costs time that a clear plan avoid. Also name an owner for each dashboard group and each alert rule. Owners sign off on rebuilt queries, which is the step that otherwise stalls because nobody knows whether a panel is still used.

Decide the identity model and folder permissions before cutover, not after. Confirm which identity provider users sign in with and which teams map to which folders, so the permissions are applied once. Also confirm the target deployment model: Linux packages, Docker images or Helm charts for Kubernetes, which affects how the team builds and repeats the install. Finally, book a maintenance window for cutover with the teams that consume dashboards and receive alert notifications, so alert routing can be switched in one controlled step and the old system can be silenced without gaps. Confirm the window length with the owners of the on-call paths, since no duration is fixed by the platform.

Questions buyers ask about Grafana migration cost, time and effort

How much does a Grafana migration cost?

Cost depends on how many dashboards, alert rules, data sources and users are in scope, how much each query must be rebuilt, and whether the target database and identity setup change at the same time. Your own team pays for staff time and infrastructure, while a partner is paid for the work in the written scope. Ask for a quote that lists each inventory category separately, the one-time work (query rebuilds, alert conversion, cutover) and any recurring items such as hosting, upgrades or support. DeployOpen does not publish a price list, so the quote follows from the written scope.

How long does a Grafana migration take?

Duration depends mostly on the inventory. A small set of dashboards that reuse one data source moves much faster than hundreds of dashboards built on Kibana queries, Datadog monitors or a legacy Grafana with custom plugins. Before any date is agreed, the inventory should be counted by type, owner and data source, and the list of alerts that depend on a notification channel should be identified. Ask for a written timeline that ties each phase to deliverables, and confirm which dashboards must be live before the old tool is retired.

Can our team migrate Grafana without outside help?

Yes, many teams do, especially when the inventory is small and the team already knows PromQL, LogQL or SQL. The harder parts are rebuilding queries against new data sources, converting alert logic and testing that notifications arrive once and on time. Your team needs someone who can run the new Grafana server, manage its database, and set up identity and provisioning. A partner is useful when the inventory is large, deadlines are fixed, or the same people must keep running production monitoring during the move.

What does the migration need from our staff?

Expect requests for a dashboard and alert owner for each domain, someone who can approve data source credentials, an operations engineer for hosting and the database, and a security or identity contact for sign-in and role mapping. Owners need time to confirm that rebuilt panels show the same meaning as the originals, which is often where effort goes. Ask the provider to list these roles in the written scope so your staff can plan their time before the work starts.

Can alerts from Kibana or Datadog be converted automatically?

Some parts can be converted with scripts or by exporting definitions, but the result should be reviewed before anyone relies on it. Thresholds, evaluation windows, labels, routing and notification channels often map differently in Grafana Alerting, and a rule that looks equivalent can fire at different times or to different people. Treat conversion as a starting point, then test each alert against known conditions and confirm the contact points and notification policies. Ask your provider how each converted rule will be verified.

Is moving from SQLite to MySQL or PostgreSQL included?

It depends on the written scope. Grafana stores configuration in SQLite 3 by default, supports MySQL 8.0 or later and PostgreSQL 12 or later, and its installation documentation says SQLite does not scale for production, so a production migration normally includes a supported database. Confirm whether the scope covers creating the database, migrating existing configuration, the backup and rollback plan, and the high availability design if more than one server will run.

Can we keep the old tool running during a parallel run?

Usually yes, and a parallel run is a common way to check that new dashboards and alerts match the old ones. Plan for double notifications during this period, because two systems may send the same alert. Decide which system is the source of truth for each alert, mute the duplicate path on a schedule, and set a retirement date for the old tool. Confirm the license and access terms of the old platform, since retiring it may be required before the parallel run can end.

What happens after cutover?

After cutover, the work shifts to running Grafana: applying patch and minor releases, keeping the database backed up, managing user access, and reviewing alert noise. Grafana publishes major releases yearly, minor releases every other month, and patch releases at least monthly, so someone must own that cycle. Ask for a handover that covers runbooks, provisioning files, backup and restore steps, and a support option for upgrades and incidents, and confirm what is included in the fixed scope and what becomes a retainer.

How DeployOpen scopes, delivers and hands over a Grafana migration

DeployOpen plans and delivers Grafana migrations inside your own infrastructure, starting from a written scope that names every dashboard, alert and data source to move. The work is fixed-scope, documented and handed over to your team, with ongoing support available as a retainer.

How we scope

  • We inventory the dashboards, alert rules, data sources and users in your current Kibana, Datadog or Grafana instance.
  • The written scope states which dashboards and alerts move, which are retired, and which query languages need rebuilding.
  • We agree the target database, MySQL or PostgreSQL, and the identity integration before any build work starts.

How we build

  • We stand up self-hosted Grafana in your environment and move configuration off SQLite to MySQL or PostgreSQL.
  • We rebuild queries against your target data sources and convert alert logic into Grafana Alerting rules and contact points.
  • We test each migrated dashboard and alert against the original output, and record every difference we find.

How we hand over

  • We store data sources, dashboards and alert rules as provisioning files so the migrated setup can be reviewed and reproduced.
  • We deliver documentation of the target architecture, the cutover runbook and a list of retired or changed alerts.
  • We walk your team through cutover, rollback steps and how to add new dashboards without drifting from the provisioned state.

How we support

  • Support after cutover is available as a retainer covering upgrades, patches and questions from your operators.
  • Retainer scope, response expectations and upgrade handling are written down before the retainer starts.
  • Hardening and security testing of the Grafana deployment can be scoped as a separate fixed-scope engagement.

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.