Migrating from the loki-distributed Helm chart to the loki chart

Retiring loki-distributed means deploying the loki chart v3.0 or higher beside it, joining one ring, excluding new pods from log scraping and scaling old components down without data loss.

On this page

Migrating from the loki-distributed Helm chart to the loki chart: what the move involves

The move from the loki-distributed chart to the loki chart is a parallel deployment joined to one ring, followed by a controlled scale-down of the old components. The new chart (v3.0 or higher, per the Loki guide) runs next to the existing release, its pods join the ring that already holds your data, and only after the new components are serving reads and writes do you bring the loki-distributed components down. Nothing is cut over in one step, which is what keeps logs queryable throughout.

Effort depends on three things you should measure before planning: cluster size (how many distributor, ingester, querier and query-frontend replicas you run, and the extra capacity needed while both sets run), storage layout (where chunks and the index sit in object storage and which index schema each period uses), and scrape configuration (which Alloy, Grafana Agent or Promtail instances collect the Loki pods' own logs). Ask your team to inventory these and to confirm the exact chart versions and values files in use. DeployOpen plans and executes the migration inside your own Kubernetes cluster and object storage, including the ring checks, scrape exclusions and scale-down steps, with the rollback point agreed in writing before work starts.

The scrape change is the part most often missed. The guide recommends updating Alloy, Grafana Agent or Promtail so the new deployment's pods are excluded from collection, because otherwise its self-monitoring logs are ingested twice and dashboards show inflated volumes. In practice this means adding a relabeling or namespace rule to the collector configuration before the new pods start, and verifying with a query that each component's logs appear once. Review the labels the new chart sets on its pods so your exclusion rule matches them and does not drop application logs by accident.

The scale-down needs its own checkpoints. Confirm that ingesters have flushed and that the ring shows the new members as active before any old ingester is removed, and reduce old components gradually so writes and reads are never routed to nothing. Keep the old release and its values files until you have run queries spanning the cutover window. Ask your team, and any partner you consider, for a written plan that names each ring check, the query used to confirm no log gap, and who signs off before each scale-down step.

Which loki-distributed settings carry over to the loki chart

This table maps each part of a loki-distributed values file to its counterpart in the loki chart and notes what changes in the move. Use it as a checklist against your own values files, since the chart structure differs and several settings must be confirmed rather than copied.

Setting areaWhat changes in the loki chartMigration note
Helm values structureComponent blocks and keys are reorganized in the loki chart v3.0 or higher, so keys from loki-distributed may not be accepted as written.Render both charts with helm template and diff the output. Verify every key in your values file against the new chart's values reference.
Component layoutDistributor, ingester, querier, query-frontend, compactor and index-gateway roles are deployed by the new chart as their own workloads.Confirm replica counts and resource requests per component in the new values. Do not assume the old counts still fit the new layout.
Object storage configurationThe same bucket and credentials must be referenced by the new pods, using the storage block that the loki chart expects.Point both deployments at the identical bucket and prefix. Check that credentials come from a Secret or existing secret reference, not inline values.
Schema and index settingsThe schema_config period entries must match the ones the running cluster already uses, including the index store and the active period.Compare schema_config in the live config with the new values file. A mismatch can split reads and writes across incompatible indexes.
Ring membershipThe new pods must join the existing memberlist or ring using the same ring configuration and cluster label.Check ring status on the old and new ingesters after startup. Confirm that both sets appear as members before scaling anything down.
GatewayThe gateway or ingress that routes read and write paths may be defined differently in the new chart.Keep routing to the old components until the new path is verified. Confirm that X-Scope-OrgID and any authentication proxy settings carry over.
Self-monitoring and log scrapingThe new deployment produces its own self-monitoring logs that the collector will also see.Update Alloy, Grafana Agent or Promtail to exclude the new pods, as the migration guide recommends. Confirm the exclusion selector in your collector config.

Documented steps and tools for this migration

The migration rests on one official guide, a small set of Helm and kubectl commands for capturing and inspecting the cluster, and the log shipper configuration that keeps the new pods out of your log pipeline. Work through them in that order, and treat each card as a checkpoint before you scale anything down.

Migration guide for loki-distributed

The Loki migrate-from-loki-distributed guide is the controlling document. It describes deploying the loki chart v3.0 or higher alongside the old release, joining the new components to the existing ring, and then removing loki-distributed components. Read it against your chart and Loki versions before you change values, because the sequence matters more than any single command. Confirm that the guide version matches the Loki version you run today.

Migration guide

Capturing current release state

Run helm list across the namespaces that hold Loki and helm get values on the loki-distributed release to save the exact values in effect. Store the output in version control before any change. This record is your rollback reference, and it shows which storage, schema and ring settings the new chart must reproduce. Ask your platform team whether any values were set by hand outside Helm.

Helm charts for both releases

You install the new loki chart next to the existing release, so the two charts must share the same storage configuration, schema and ring settings. Compare the rendered manifests with helm template and diff them against the captured values. Pin chart versions explicitly so an unplanned upgrade does not occur during the install.

kubectl for ring and pod inspection

Use kubectl get pods and kubectl describe to confirm that new ingesters, queriers and other components reach Ready, and check the Loki ring status endpoints on each component to confirm that new members have joined the existing ring. Inspect logs of new pods for join errors. Scale old components only after every member shows healthy in the ring and no component reports missing peers.

Scrape exclusion in your log shipper

The guide recommends updating Grafana Alloy, Grafana Agent or Promtail so it skips the new deployment's pods. Without this, Loki's self-monitoring logs are scraped twice and appear as duplicate entries. Choose a selector based on namespace or pod labels, apply it to the shipper configuration, and confirm that no Loki pod logs appear in your query results after the change.

No automated converter in the sources

The supplied sources do not describe an automated converter for moving loki-distributed values to the loki chart. Treat the values mapping as a manual task. Before the project starts, confirm with Grafana Labs documentation or your own test cluster whether any tooling exists for your chart versions, and budget for a manual review of each value.

Sequence for a parallel run and cutover

This sequence moves a Loki cluster from the loki-distributed chart to the loki chart by running both side by side, joining them to one ring, and retiring the old components only after reads and writes are verified. Each stage ends with a rollback point, so the old deployment stays usable until the new one has proven itself.

  1. Inventory current values and storage

    The platform engineer records the running loki-distributed release values, the Loki version, the storage configuration (bucket, index store, schema periods), the ring and memberlist settings, the tenant configuration and the Alloy, Grafana Agent or Promtail configuration that ships logs today. Confirm the chart and image versions against the migration guide before changing anything. Store the rendered values and a copy of the Loki config in version control. Done when every setting the new chart must match is written down and a second engineer has reviewed it. Rollback point: nothing has changed in the cluster yet, so stopping here costs nothing.

  2. Rehearse the migration in staging

    The team builds a staging copy of the current cluster, or uses a non-production environment with the same storage layout, and runs the full sequence there. They deploy the loki chart v3.0 or higher beside the old release, join the rings, exclude the new pods from scraping, scale down and time each step. Record every error, config mismatch and dashboard that breaks. Done when the rehearsal completes with reads and writes verified and the runbook has been corrected from what was actually observed. Rollback point: staging is discarded and rebuilt, production is untouched.

  3. Deploy the loki chart alongside the old release

    The team installs the loki chart at version 3.0 or higher into the same namespace or a sibling one, with the same object storage, schema and tenant settings as the running cluster. The new pods are configured to use the existing ring instead of forming a separate cluster. Confirm that the new pods reach Ready and that the old loki-distributed pods keep serving traffic without restarts. Done when both releases are running and no existing query or write path has changed. Rollback point: uninstall the new release, which leaves the old cluster as it was.

  4. Join the new pods to the existing ring

    The new ingesters and other ring members join the memberlist or ring used by the old deployment, so both sets share hash tokens and see the same stream ownership. The team checks the ring status page on each component and confirms that members from both releases appear as healthy and active. Done when every ring lists the expected members from both releases with no unhealthy or leaving entries. Rollback point: remove the new members from the ring and uninstall the new release, since no data has been reassigned beyond what the old ring already held.

  5. Exclude new pods from log scraping

    The team updates the Alloy, Grafana Agent or Promtail configuration so that pods created by the loki chart are dropped before logs are shipped. The migration guide recommends this so the new deployment's self-monitoring logs are not scraped twice. Apply the change, then confirm in the log pipeline that no entries from the new release appear under the Loki namespace or labels used by the chart. Done when a test query shows the new pods producing no duplicate ingested streams. Rollback point: revert the collector configuration file, which restores the previous scrape behavior.

  6. Verify reads and writes on both releases

    The team runs write tests from the shipping agent and read tests through the Loki gateway or Grafana, including queries that span old and new ingesters and queries for data written before the migration. They check ingestion and query error rates, latency and the tenant headers used by clients. Done when the test queries return complete results for both old and new data and no write errors appear in the logs. Rollback point: keep both releases running and route traffic back to the old components if verification fails.

  7. Scale loki-distributed components down in order

    The team reduces the old loki-distributed components one role at a time, starting with the stateless read and query components, then the distributor and querier paths, and leaving ingesters for last. After each reduction they recheck the ring, query results and write acknowledgment before moving to the next role. Done when all old components are at zero replicas and the ring shows only the new members as active. Rollback point: scale any role back to its previous replica count, since the old pods can be restored from their existing deployment definitions until the final ingester step.

  8. Decommission the old release and confirm storage

    Once the new release has run without regressions, the team uninstalls the loki-distributed release, removes its leftover resources and deletes the unused configuration. They confirm that all retention, compaction and deletion jobs still run from the new deployment and that object storage contents are intact. Done when the old release no longer appears in the cluster, dashboards and alerts point to the new services, and the runbook is archived. Rollback point: after uninstall, recovery means reinstalling the old chart from the saved values, so keep those values and a storage snapshot until the team accepts the cutover.

How old and new components share one ring during cutover

The diagram starts with the agents that ship logs, which must be updated so the new deployment's pods are excluded from scraping. Writes and reads flow to both the loki-distributed components and the new loki chart components, which join the same ring and share object storage. Scale-down then proceeds in phases, with the old components removed only after the new ones have taken over their work. Check ring membership and ingestion at each phase before moving on.

Old and new Loki components sharing one ring and object storage during cutover.

What drives the effort and duration of this migration

This table lists the factors that raise or lower the effort of moving from the loki-distributed chart to the loki chart, with what to ask for in a written quote. Read each row as a question to answer about your own cluster before you agree on scope. The main takeaway is that ring membership, scrape exclusions and scale-down order matter more to the schedule than the number of pods.

DriverEffect on effortWhat to ask for in a written quote
Cluster size and component countRaises effort. More distributor, ingester, querier and query-frontend replicas mean more pods to join the ring and more steps to scale down.A component-by-component inventory of replicas, with the order of rollout and scale-down listed for each.
Ingest volume and ingester stateRaises effort. Large ingester volumes make the handover slower to verify and raise the risk of data loss if scale-down runs too early.Confirmation of how ring health and flush completion will be checked before any old ingester is removed.
Number of tenants and auth modeRaises effort when auth_enabled is true. Tenant-specific limits and X-Scope-OrgID routing must be checked on the new pods as well as the old.Tenant list, per-tenant limits and a test plan that sends traffic for each tenant through both releases.
Custom Helm valuesRaises effort. Each override in the old values file must be reviewed against the loki chart values, because keys and defaults can differ.A diff of the current values file against the target chart values, and a list of overrides that will be kept, changed or dropped.
Scrape configuration complexityRaises effort. Alloy, Grafana Agent or Promtail configs must exclude the new pods so self-monitoring logs are not scraped twice.The exact exclusion rules to be added, the agent(s) affected, and a check that no duplicate streams appear after the change.
Storage and retention settingsRaises effort when retention or compaction is configured. Shared object storage and compactor state must stay consistent across both releases during the overlap.Confirmation of bucket layout, retention settings and which compactor will run during the overlap.
Change windows and rollback planRaises effort when windows are short or many teams must approve. Each phase needs a tested rollback point.The number of change windows assumed, the rollback steps for each phase and who approves each window.
Team familiarity with Helm and Loki internalsLowers effort when the team already runs ring-based Loki. Raises effort when rings, compactor and tenant limits are new to operators.Named roles in the migration, the training or pairing included, and which steps the client team runs alone.

What goes wrong when joining two Loki deployments

Running the loki chart beside loki-distributed puts two sets of Loki components on one ring and one set of storage. Most failures come from the overlap period: duplicate logs, a ring that does not form, configuration that drifts between the two releases, and scale-down that happens before traffic has moved. Each card below names one of these failures and the check that prevents it.

Self-monitoring logs scraped twice

The new deployment writes its own pod logs, and the existing log collector will pick them up unless it is told to skip them. Each line then lands in Loki twice, which inflates storage use and skews counts in dashboards and alerts. The migration guide recommends updating Alloy, Grafana Agent or Promtail to exclude the new pods before the new chart is deployed. Check that the exclusion matches the new release's labels, then confirm that a query for one pod's log lines returns a single stream.

Migration guide

Ring membership mistakes

Both charts must join the same memberlist ring for the new components to take over the hash space. If the new pods use a different cluster label, a different join address or a different gossip port, they form a separate ring and writes stay split between two groups. Compare the ring status page from both deployments before scaling anything down. Each ingester should show as ACTIVE in one ring, and no component should appear twice.

Mismatched storage and schema configuration

Both deployments must read and write the same object storage bucket and use the same schema period definitions for existing data. A different bucket prefix, a changed index store or a new period_config with an unintended start date can make older chunks unreadable from one side. Diff the rendered storage_config and schema_config sections from both releases before the first pod starts. Confirm that a query for logs written last week returns results from both the old and new query paths.

Scaling old components down too early

Reducing ingester or distributor replicas on loki-distributed before the new components are taking traffic lowers write capacity and can drop in-flight data held only in memory. The safe order is to add new components, confirm they are receiving writes and serving queries, then drain old components one at a time. Check that each ingester flushes its chunks before it is removed, and watch ingestion error rates while each step runs.

Query gaps during cutover

Grafana data sources and dashboards often point at one query endpoint. When that endpoint is switched to the new gateway before the new query components have warmed their caches or joined the ring, recent logs may be missing for a few minutes. Keep the old query path reachable until the new one returns the same results for a set of known queries. Record which query endpoint each data source uses so the switch is a single, reversible change.

Missing rollback plan

Without a written rollback path, a failed cutover turns into an unplanned rebuild of the loki-distributed release. Decide in advance which step can be reversed quickly: restoring the gateway route, scaling the old components back up, or removing the new release. Keep the old Helm values files and the rendered manifests under version control, and test the rollback in a non-production cluster first. Confirm with the team who can approve each rollback step during the change window.

Questions teams ask before migrating loki-distributed

How much effort and cost should we expect for this migration?

The cost is mostly the engineering time to plan, deploy, cut over and verify, plus any cluster capacity you run in parallel during the overlap. No public figure is supplied for this migration, so ask for a written scope before comparing options. Costs rise with the number of components in your loki-distributed release, the size of your storage and ring, how many dashboards and alerts depend on the old endpoints, and how many change windows you need. Costs fall when the cluster is already on current Helm practices and object storage configuration is clean. Ask any quote to itemize planning, values authoring, parallel deployment, ring join, scale-down, verification and rollback support, and to state which parts are one-time and which are recurring retainer work.

How long does a loki-distributed to loki chart migration take?

The duration depends on how many environments you have, how much change control applies, and how much parallel capacity your cluster can hold while both deployments run. The official guide describes deploying the new chart alongside the old one, joining the new cluster to the existing ring, and then bringing down loki-distributed components, so the overlap period is the main variable. Ask for a timeline that separates non-production rehearsal from production cutover, and confirm how many maintenance windows the plan assumes. Any duration you are given should be tied to the agreed scope in writing.

What must our team provide before the migration starts?

Plan on providing cluster administrator access in the target Kubernetes environment, the current loki-distributed values files and the Helm release history, and the object storage credentials and bucket details that Loki already uses. You also need the Grafana and log shipper configuration, a list of dashboards and alert rules that query Loki, and approved change windows for each environment. Confirm who can approve a rollback decision and who owns on-call during the overlap. If you use Alloy, Grafana Agent or Promtail, the team that owns those agents must be available to update their exclusion rules.

Can our own team do this migration using the official guide?

Yes, a team with Helm and Kubernetes experience can follow the official migration guide without a partner, and many teams do. The guide is short in outline but the work depends on your specifics: chart values that differ from defaults, ring membership, storage configuration and how your agents are set up. The decision usually turns on whether your team has run Loki in production and has time for a rehearsal in a non-production cluster first. Ask a partner to state which steps it will perform, which your team keeps, and how knowledge is handed over in writing.

How do we avoid losing log data during the cutover?

Data loss is avoided by keeping the old ring serving reads and writes until the new components have joined the same ring and the ingest path is verified, then scaling loki-distributed components down one stage at a time. The sequence matters: confirm the new pods are healthy and in the ring, check that ingesters are receiving writes, and only then reduce the old components. Take a verified backup of the object storage configuration and index state before starting, and rehearse the scale-down in a non-production cluster. Keep a documented rollback path that restores the previous replica counts and values. Confirm with the vendor what the guide states about in-flight data during each step.

Will our dashboards and LogQL queries change after the migration?

Queries generally keep working because the new deployment joins the same ring and reads the same stored data, but you should verify this rather than assume it. Check the Grafana data source URL, any hard-coded service names or ingress hosts, and any dashboards or alert rules that reference loki-distributed component names in metrics or labels. Self-monitoring metrics and labels may differ between the two charts, so review panels that filter on those names. Build a checklist of critical queries and alert rules and run it before and after cutover, so any difference is caught in a test rather than during an incident.

Why must we exclude the new pods from log scraping, and how?

The new deployment produces its own self-monitoring logs, and if your log shipper collects them, the same lines can be ingested twice from two sources. The official guide recommends updating Alloy, Grafana Agent or Promtail so the new deployment's pods are excluded from scraping. Decide the exclusion rule before deploying, based on labels that identify the chart's pods, and test that the rule matches only the intended pods. Confirm after cutover that duplicate streams are not appearing in queries. Promtail reached end of life on March 2, 2026, so if you still run it, plan that agent change alongside this work.

Which Loki chart version should we target for this migration?

The official guide migrates to the loki chart v3.0 or higher, so that is the minimum version to target. Check the release you plan to deploy against the Loki release you run, since the chart and the Loki binary versions must match the storage and schema you already use. The latest Loki release listed in the supplied sources is v3.7.8, published September 17, 2026, but confirm the chart version compatible with your current Loki release before choosing a target. Pin the chart version in your values and rehearse the deployment against that exact version.

What this migration does not include

This page covers one thing: moving from the loki-distributed Helm chart to the loki chart at version 3.0 or higher, joining the new pods to the existing ring, excluding them from log scraping, and scaling the old components down. It does not cover moving log shippers to a new agent, changing the Loki version itself, or redesigning storage, tenancy or query layout. Before you start, confirm with your own environment which Loki version runs on both charts, because the chart move is only one part of any version change. Also confirm that your agents are already on a supported collector, since an agent migration would normally be planned as its own project.

If your log collection still runs on Promtail, which reached end of life on March 2, 2026, plan that move separately using the Promtail to Grafana Alloy migration. Agent changes are worth sequencing around this chart move rather than combining with it, because each one changes a different part of the pipeline. The only agent-side step this page requires is updating your collector so it skips the new deployment's own pods, as described in the ring join and scraping sections.

Major Loki version changes, including schema, storage and configuration changes, belong to the Loki upgrades group and its official upgrade guide. Do not treat a chart migration as an upgrade, and do not assume that moving to the loki chart resolves any compatibility questions a version change raises. Finally, this page does not include capacity planning for your ingestion volume, retention policy or Grafana access setup. Those decisions sit in the deployment, storage and multi-tenancy groups, and they should be settled before the old components are removed.

How DeployOpen works on this

DeployOpen plans and runs the move from the loki-distributed chart to the loki chart inside your own Kubernetes clusters, starting with a written scope that names every component, ring check and scale-down step. The work is delivered as a fixed-scope engagement with documented checkpoints, and ongoing support is available as a retainer.

How we scope

  • We inventory your current loki-distributed release, values files, storage configuration and the Loki version it runs.
  • We confirm the loki chart version (v3.0 or higher) and the target values that match your storage and tenancy settings.
  • The written scope lists the log collectors to update so new pods are excluded from scraping and self-monitoring logs are not duplicated.

How we build

  • We deploy the loki chart alongside the existing release in a staging cluster first, then in production with the same sequence.
  • We verify that the new components join the existing ring and that writes and queries succeed before any old component is touched.
  • We scale loki-distributed components down one group at a time, checking chunk flushes and query results after each step.

How we hand over

  • You receive the final chart values, the collector configuration changes and a record of each ring and health check performed.
  • The runbook covers the scale-down order, rollback points and the exact checks to repeat if a component fails during the move.
  • We walk your platform and on-call engineers through the cluster afterward so they can operate the new deployment without us.

How we support

  • Remediation of issues found during testing is included in the written scope, with each change recorded in the handover documents.
  • Ongoing upgrades, monitoring and continuous testing of the Loki deployment are available through a support retainer.
  • Before starting, confirm with us which Loki and Kubernetes versions your clusters run, since version support windows affect the upgrade plan.

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.