Loki implementation plan and cost

A Loki implementation is planned around daily log volume, deployment mode, object storage, retention, shippers and Grafana access. This page sets out the phases, roles and cost drivers so you can budget your own time and compare partner quotes.

On this page

How much does a Loki implementation cost, and who should build it?

Cost follows log volume, retention period, access model and the internal skills you already have. For most teams with a platform engineer and a named security owner, the build can stay in-house. Outside help usually pays off when you need fixed-scope delivery, compliance evidence or a tight go-live date. Grafana Loki is licensed under AGPLv3 and runs in your own infrastructure, so there is no license fee to budget. The money goes to three places: the object storage and compute that hold and query your logs, the people who build and run the stack, and the time it takes to get it production-ready.

Start with the inputs that set the infrastructure bill. Estimate average and peak daily log volume per environment, and decide how long each class of log must stay. Retention is off by default in Loki, so logs accumulate until the compactor is configured with retention_enabled. Retention rules can differ per tenant or per stream selector, which changes how much storage you pay for and how long it is paid for. Next, choose the deployment mode. The monolithic mode is documented for up to about 20 GB of logs per day, and the simple scalable mode is being deprecated and removed with Loki 4.0, so plan the target architecture now rather than paying for a migration later. Confirm current limits and mode guidance in the Loki deployment modes documentation.

When you request quotes, ask each partner to separate one-time work (design, deployment, integration with shippers, Grafana and identity, and initial hardening) from recurring work (upgrades, on-call support, retention reviews and testing). Ask who carries the authenticating reverse proxy, the log shipper migration and the object storage permissions, since these are often missed in estimates. Ask for effort by role, the assumptions behind the daily volume and retention figures, and what happens if volume grows. Internally, budget the platform engineer and security owner time explicitly, because that time is usually the largest line item after storage, even when no vendor is involved.

What a fixed-scope Loki implementation includes

A fixed-scope Loki engagement splits into parallel work packages that share one repository, one set of tenant rules and one acceptance test run. Scope, deliverables and timelines are agreed in writing before work starts, so each package below has a named artifact you can review.

Deployment mode and sizing

We confirm the deployment mode against your daily log volume, then size the write, read and backend components. Loki's documented modes differ sharply in scale, and simple scalable mode is being deprecated ahead of Loki 4.0, so the choice affects future migration work. You receive the sizing worksheet, Helm values or manifests in your repository, and a load test report that records the volume the stack was tested at.

Deployment modes docs

Object storage and TSDB index

We configure chunk and index storage on the object store you approve, typically S3, Google Cloud Storage or Azure Blob Storage for production, and set the TSDB index store. You receive the storage configuration, bucket and access policy definitions, and a restore test showing that Loki reads data back after a storage node or bucket change. Confirm with your storage team whether S3-compatible on-premises stores meet your production requirements.

Loki storage docs

Retention and tenant setup

We enable the compactor and define retention rules globally, per tenant or per stream selector, because retention is disabled by default and logs are otherwise kept indefinitely. Tenant IDs are mapped to your teams or business units through X-Scope-OrgID. You receive the retention matrix signed off by your data owners, the tenant register and a test that confirms deletion runs as configured.

Log shipper rollout with Alloy

We deploy Grafana Alloy to collect logs from hosts, Kubernetes and applications, and migrate any Promtail agents, which reached end of life on March 2, 2026. Labels are reviewed for cardinality before rollout. You receive the Alloy pipeline configuration, a label standard, and a coverage report listing which sources ship logs and which were excluded and why.

Promtail docs

Authenticating reverse proxy

Loki has no built-in authentication, so we place an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of every write and read endpoint, and set the tenant header from the authenticated identity. The client chooses the proxy product and identity provider. You receive the proxy configuration, a list of exposed endpoints, and a test showing that unauthenticated requests are refused.

Loki authentication docs

Grafana data source and access

We connect Grafana to each tenant with the correct header, build baseline dashboards and set folder and team permissions so people see only their tenant's logs. Confirm whether your role model needs label-based access control, which is a Grafana Enterprise Logs feature, before the access design is locked. You receive the data source provisioning files, dashboards in version control and an access matrix.

What drives Loki implementation cost and duration

This table lists the factors that move effort and cost for a self-hosted Loki stack, with why each one matters and one way to keep it down. Read it top to bottom before you ask for a quote, because the first two rows usually set the architecture and the rest set the amount of work around it. The main takeaway is that volume and deployment mode decide the shape of the build, while retention, shippers and access decide how much ongoing work follows.

DriverWhy it moves effortHow to keep it down
Daily log volumeMonolithic mode is documented for up to about 20 GB of logs per day, and simple scalable mode for approaching 1 TB per day. Crossing a band means a different topology, more capacity testing and more tuning.Confirm real ingest per day from a pilot before choosing a mode, and size for the band you actually reach, not peak guesses.
Deployment modeSimple scalable mode is being deprecated and will be removed with Loki 4.0, so a build on it may need a later migration. Microservices mode adds components to deploy, scale and monitor.Ask whether the design starts on a mode with a supported future path, and budget for the migration if it does not.
Object storage choiceAmazon S3, Google Cloud Storage and Azure Blob Storage are the recommended production stores. S3-compatible stores such as MinIO and the local filesystem are supported but not typically recommended for production, which adds validation work.Use the object store your platform team already operates and runs backups for, and confirm the access policy and encryption settings before go-live.
Retention periods and per-tenant rulesRetention is disabled by default, so logs are kept indefinitely until it is enabled. Global, per-tenant and per-stream rules each need design, testing and an owner, and each stream rule must be at least 24 hours.Agree retention classes with the compliance owner up front, and keep rules to a small set of tenant-level defaults.
Log sources and shipper typesEach source type needs its own parsing, labels and tests. Promtail reached end of life on March 2, 2026, so older Promtail configs must move to Grafana Alloy, which adds rewrite work.Inventory sources first, group them by shipper, and use Grafana Alloy as the single collector where possible.
Number of tenants and teamsEach tenant is identified by the X-Scope-OrgID header, and access rules, retention and quotas must be mapped per team. More tenants mean more mapping, testing and support requests.Start with a short list of tenants aligned to ownership boundaries, and add more only when a team has a clear need.
Grafana access and SSOLoki has no built-in authentication layer, so an authenticating reverse proxy must be deployed and integrated with the identity provider. Grafana users need datasource and team mapping on top of that.Reuse the identity provider and proxy pattern the organization already runs, and limit direct query access to a few roles.
Environments and change controlEach environment (development, test, production) needs its own storage, configuration and upgrade path. Upgrades must be tested against schema and index changes before they reach production.Keep non-production environments small, and reuse the same Helm values or configuration across them.
Compliance evidence needsAssessors often ask for access records, encryption settings, retention proof and deletion records for logs. Each of these needs to be designed, configured and captured, and they often need a separate evidence pack.Define the evidence list during scoping, and build logging of configuration and access changes into the initial deployment.

Phases of a Loki implementation plan

The sequence moves a Loki stack from a sized design to a production service with tested retention, tenant isolation and a handover. Each phase ends with a written output that the next phase depends on, so gaps surface before production traffic arrives.

  1. Discover volume, sources and retention needs

    The client's platform team and DeployOpen inventory the log sources, estimate daily log volume per source, and record who needs access to which logs. Retention requirements are captured per log category, including any periods set by internal policy or regulation. The output is a sizing worksheet and a retention requirements list, signed off by the owners of the logs. Confirm the daily volume with measured data from existing systems where possible, since estimates drift.

  2. Choose deployment mode and object store

    Using the sizing worksheet, the team selects a deployment mode from the options Loki documents: monolithic, simple scalable, or microservices. Simple scalable mode is being deprecated and will be removed with Loki 4.0, so a new build should be checked against that timeline before it is chosen. The object store is selected from the environment, whether Amazon S3, Google Cloud Storage, Azure Blob Storage, or an S3-compatible store the client already operates. The output is a short architecture decision record covering mode, object store, tenancy model and the Loki version to pin.

  3. Build a non-production environment

    DeployOpen builds a non-production Loki stack in the client's infrastructure using TSDB as the index store, which Loki recommends for version 2.8 and newer, and the chosen object storage. Bucket permissions, encryption settings and the compactor are configured here, along with a small set of test log streams. The output is a running staging environment and a configuration baseline in version control. Confirm the Loki release and Helm chart version against the Loki releases page before the build starts.

  4. Roll out shippers and the authenticating proxy

    Log shippers are deployed to test sources. Grafana Alloy is the supported shipper, and Promtail should not be used for new work because it reached end of life on March 2, 2026. An authenticating reverse proxy is placed in front of Loki, since Loki has no built-in authentication layer, and tenant identifiers are passed with the X-Scope-OrgID header. The output is a test set of sources flowing into Loki through the proxy, with a record of which tenant each source writes to and how users reach Grafana.

  5. Enable and test retention and tenant isolation

    Retention is disabled by default, so logs accumulate indefinitely until the compactor settings are changed. This phase sets retention_enabled explicitly and defines retention globally, per tenant, or per stream selector, with each rule at least 24 hours. The team then verifies that logs older than each period are deleted and that a user in one tenant cannot query another tenant's data through the proxy. The output is a signed test record showing retention behavior and tenant boundaries for each category in the requirements list.

  6. Cut over to production and hand over

    Production shippers are switched on in agreed waves, with the staging configuration promoted through version control rather than edited by hand. Query performance, ingestion health and compactor activity are checked against the agreed baseline during the first days of live traffic. DeployOpen hands over runbooks, dashboards, the upgrade and retention procedures, and the access model. The output is a production service that the client's team can operate, plus a documented list of open items.

How the Loki parts fit: shippers, proxy, Loki and object storage

The flow starts at log sources, which send entries to a shipper such as Grafana Alloy, Fluent Bit, Fluentd, the Docker logging driver or OpenTelemetry over HTTP. Writes then pass through an authenticating reverse proxy that sets the X-Scope-OrgID header, because Loki has no authentication layer of its own. Loki's write and read paths store compressed chunks and the TSDB index in object storage, and the compactor applies retention. Check the two trust boundaries: user access to the proxy, and the proxy to the bucket, where storage permissions matter most.

Illustrative layout, not a required topology: trust boundaries sit at the proxy and the storage bucket.

Which Loki work your team keeps in-house and which to outsource

Your team should keep the decisions that only your organization can make: which logs are collected, who may read them, how long each stream is retained, and who is on call when the logging stack fails. These decisions depend on your data classification, your incident response obligations and your internal approval paths, and no partner can make them for you. In Loki, they map to concrete settings. Retention is applied by the compactor and is disabled by default, so the retention_enabled setting and the per-tenant or per-stream retention rules are a policy decision you must own before go-live, not a default you inherit. Ownership of tenant mapping and of the on-call rota should also stay internal, because the people who answer a 2 a.m. alert about ingestion lag need access to your systems and authority over them.

A partner is often used for the work that is front-loaded, specialized and easy to get wrong once: the sizing exercise based on your daily log volume, the initial build of the chosen deployment mode, the authenticating reverse proxy and access design (Loki has no built-in authentication layer, so this is mandatory), the cutover from existing shippers, and the written runbook. Each part needs different skills. Sizing and the build need Kubernetes or virtual machine operations and object storage administration. Access design needs identity administration and an understanding of X-Scope-OrgID tenancy. Grafana administration covers data sources and team permissions. Security review should check the proxy, bucket permissions and retention before logs from sensitive systems arrive. Ask any partner which of these skills it will staff directly and which it will ask you to provide, and write that split into the scope before work starts.

What goes wrong in a Loki implementation and how to prevent it

Most Loki problems show up weeks after go-live, not during install. The risks below share a pattern: a default or assumption goes unchecked, and the cost lands later in storage, access exposure or unreadable logs. Each card names the prevention step and the check that proves it is in place.

Retention left disabled

Loki's compactor keeps logs indefinitely until retention is switched on, so the default behavior is unbounded growth in object storage. Set retention_enabled explicitly, choose a period per tenant or per stream selector, and confirm the compactor is running. Proof is a reviewed configuration file showing the retention settings, plus a storage growth report for the first weeks that matches the intended period. Rules must be at least 24 hours each.

Retention docs

No authentication in front of Loki

Loki has no built-in authentication layer, so anything that can reach its HTTP port can read or write logs. Place an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of every endpoint, and keep Loki itself off public networks. Proof is a network policy or security group export showing only the proxy can reach Loki, and a test where an unauthenticated request to the query and push endpoints is refused.

Authentication docs

Tenant headers missing or mixed

When auth_enabled is true, every request must carry an X-Scope-OrgID header, and a missing or wrong value either fails or places logs in the wrong tenant. Shippers, the proxy and Grafana data sources each need the correct header set in their configuration. Prevention is a tenant mapping document that ties each team to one tenant ID, plus a test that writes to one tenant and confirms the logs are invisible to another.

Multi-tenancy docs

Promtail deployed after end of life

Promtail reached end of life on March 2, 2026, with no further updates or commercial support. Teams that copy older install guides still deploy it, which creates a shipper nobody will patch. Choose Grafana Alloy as the shipper from the start, and inventory every host or cluster for Promtail agents during planning. Proof is an agent inventory listing Alloy on all log sources and a zero count of Promtail processes at go-live.

Promtail docs

Deprecated index store chosen

Older index stores such as DynamoDB, Bigtable and Cassandra are deprecated, and TSDB is the recommended index store for Loki 2.8 and newer. A design copied from an old tutorial can lock the cluster into a store that will need migration later. Confirm the index type in the schema configuration before the first write, and record the choice in the architecture decision log. Proof is the schema config showing TSDB and a version check against the running release.

Storage docs

Sizing from a one-week sample

A single week of logs misses month-end batch jobs, incident spikes and new services that will add volume after go-live. Sizing from it leads to the wrong deployment mode and an underestimated object storage budget. Measure daily ingest over a longer period, include peak days, and pick the deployment mode against that figure. Proof is a sizing worksheet with daily volumes, peak values and the chosen mode, reviewed before the quote is signed.

How the Loki plan changes by starting point

If you already run Promtail, the plan starts with collection rather than storage. Promtail reached end of life on March 2, 2026, with no further updates or commercial support, so the collection layer has to be replaced before you extend the logging stack. Plan the shipper move as a phase of its own, because it touches every host and every log path that Promtail reads today. The migration of collection and index stores is covered on a separate page, so this tab only covers what changes in your plan.

  • Shipper inventory: List every host, container and scrape configuration that Promtail reads, including custom pipeline stages that parse or drop lines.
  • Label review: Compare current labels with what you need for queries, because label design is harder to change once tenants and dashboards depend on it.
  • Alloy decision: Decide early whether Grafana Alloy will run as a daemon on each host or as a gateway, since that affects firewall rules and service accounts.
  • Parallel running: Plan a period where Promtail and Alloy ship the same streams so you can compare counts before cutting over.
  • Retention baseline: Record how long logs are kept today so retention settings in Loki match the policy you already follow.

Before you start, confirm with your team which Promtail configurations contain sensitive fields that should be dropped at the shipper.

What your team must provide before a Loki quote

A quote for a self-hosted Loki stack follows from written inputs, and the quality of those inputs decides how tightly the scope can be drawn. The first input is volume: current average daily log volume, the peak rate per source and per hour, and the growth you expect over the next budget year. Volume determines which deployment mode is viable, since the Loki deployment modes documentation ties monolithic mode to roughly 20 GB per day and simple scalable mode to a much larger range, so a guess of a few gigabytes against a real figure of several hundred changes the architecture entirely. Also provide a list of log sources and shipper types (Grafana Alloy, Fluent Bit, Fluentd, the Docker logging driver, or OpenTelemetry over HTTP), and state whether any Promtail agents still run, because they need migration work that belongs in the scope.

The second input is governance. Give retention requirements by data class, such as security audit logs, application logs and debug logs, with the period each must survive and any deletion obligations for sensitive fields. Retention is disabled by default in Loki, so a missing requirement means logs accumulate indefinitely in object storage, and the compactor settings must match each rule. List the tenants you will create, the teams or systems that belong to each, and who may read each one. Identity details matter as well: the identity provider, the protocol Grafana and the authenticating proxy will use, and the group claims that map people to tenants. Name the target infrastructure (cloud account, data center or air-gapped network) and the object storage service you intend to use.

The third input is ownership. Name one accountable owner each for object storage and cost, identity, security review and on-call, and confirm who approves changes to retention and tenant access. Vague answers such as "the platform team will handle it" widen scope, because every unassigned decision becomes a question during design and a delay during build. Ask your partner to confirm in writing which of these inputs they will verify before quoting, and which they will treat as assumptions to be validated in the first phase.

How much does Loki implementation cost, and how long does it take?

What drives the cost of a self-hosted Loki implementation?

The main drivers are daily log volume, the deployment mode you pick, the object storage you run logs on, how long you keep logs, how many log sources you onboard, and how much Grafana access you need. Volume and retention set the storage footprint and the compute needed for ingestion and querying, so they change both the infrastructure bill and the sizing work. Object storage is usually the largest recurring line because Loki keeps compressed chunks and its index there. Log shipper count and Grafana access setup add one-time integration work, while ongoing platform time covers upgrades, retention checks and access requests. Ask any quote to state the assumed daily volume, retention per tenant, the number of sources, and which costs are one-time versus recurring.

Can our own team build a Loki stack without outside help?

Yes, a capable platform team can build Loki in its own infrastructure, since Loki is open source and its documentation covers deployment, storage and retention. The work that usually takes the most experience is sizing for your volume, configuring object storage permissions, setting retention per tenant, placing an authenticating reverse proxy in front of the endpoints, and onboarding log shippers across many systems. Loki also has no built-in authentication, so security design is part of the build, not an add-on. Decide early whether you have people who can own those pieces for the life of the stack. An outside partner typically works from a written, fixed scope, so compare that scope against your own staffing and skills.

How does the deployment mode change implementation effort?

Loki documents three deployment modes. Monolithic mode runs as a single binary and is documented for up to about 20 GB of logs per day, so it has the least moving parts. Simple scalable mode separates read, write and backend targets and is documented as approaching 1 TB per day, but Grafana states it is being deprecated and will be removed with Loki 4.0. Microservices mode is for very large clusters and carries the most components to deploy, monitor and upgrade. Because simple scalable mode is leaving, a new build should weigh monolithic against microservices, and an existing simple scalable deployment will need a migration plan. Confirm your expected volume and growth against the current deployment modes documentation before choosing.

Do we need Grafana Enterprise Logs to start with Loki?

No. Loki is licensed under AGPLv3, and Grafana Labs announced on April 20, 2021 that Loki and its other core projects would move from Apache License 2.0 to AGPLv3, so the open-source edition is available to start. Grafana Enterprise Logs is the commercial product based on Loki and adds token authorization, label-based access control and cross-tenant queries. It entered long-term support with version 3.6 and reaches end of life on February 1, 2029. Choose it only if those features are required by your access model or your support terms. Have legal review the AGPLv3 obligations that apply to how you modify and offer Loki internally, and confirm the GEL features you need against its documentation.

What must our internal team commit to after a Loki launch?

Plan for ongoing platform time, not only a launch date. The team needs owners for the object storage account and its permissions, the compactor and retention settings, the authenticating proxy and tenant mapping, and the Grafana data source configuration. Upgrades bring schema, index and Helm chart changes that need query and retention testing afterward. Log shipper changes also need an owner, because collection configuration drifts as services change. Ask any partner or internal estimate to list who performs each recurring task, how often, and what on-call coverage is expected. Those answers usually decide total cost more than the first build does.

What happens to retention and Promtail if we already run them?

Check both before the plan is fixed. Retention in Loki is disabled by default, so logs are kept indefinitely until retention_enabled is set. Retention can be global, per tenant or per stream selector, and each stream rule must be at least 24 hours, so existing data may be kept far longer than intended. Promtail reached end of life on March 2, 2026, with no further updates or commercial support, and Grafana directs users to migrate to Grafana Alloy. Budget a migration of collection configuration and a review of how long existing data stays in storage. These tasks add one-time effort and can change your storage cost quickly.

How is a Loki implementation quote produced?

A quote follows from a written scope. Share your expected daily log volume, growth, retention per tenant, deployment target such as cloud account, data center or air-gapped network, object storage choice, number and type of log sources, Grafana access model, and any compliance evidence you need. The provider should list phases, roles, deliverables, assumptions and exclusions, and separate one-time work from recurring support. DeployOpen does not publish a price list; most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for the assumptions behind any duration and for the recurring support terms before signing.

How DeployOpen scopes, delivers and hands over a Loki implementation

DeployOpen plans and implements self-hosted Loki inside your own cloud accounts, data centers or air-gapped networks. We start with a written scope that fixes the deployment mode, object storage, retention, shippers and Grafana access, then build, test, document and hand the stack to your team, with ongoing support available as a retainer.

How we scope

  • Agree in writing which Loki deployment mode fits your daily log volume and growth expectations.
  • Inventory log sources, shippers and the Grafana access model before any build work starts.
  • Define retention periods per tenant or stream, and confirm which compliance evidence you need to keep.

How we build

  • Deploy Loki on your chosen object storage with the index store and compactor configured as agreed.
  • Configure Grafana Alloy or your existing shippers, and place an authenticating reverse proxy in front of Loki.
  • Test ingestion, tenant separation, query performance and retention behavior against the written acceptance criteria.

How we hand over

  • Deliver architecture, configuration and runbook documentation covering backups, upgrades and retention changes.
  • Walk your platform and security teams through the running stack, including tenant onboarding and access changes.
  • Record the open items, owners and any environment-specific decisions your team needs to confirm after handover.

How we support

  • Offer ongoing support, version upgrades and continuous testing as a retainer, scoped separately from the build.
  • Plan Loki version upgrades and schema changes with your team, and retest queries and retention afterwards.
  • Confirm with your team which support hours, response expectations and change processes the retainer should include.

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.