Why storage choice decides how stable Prometheus is
Before you deploy or move Prometheus, pick local, single-node storage with enough headroom for compaction, and keep shared network file systems out of the data path. Prometheus writes its time series database to a directory on one host, and that choice sets how often the server stays up, how fast queries return, and how much recovery work you face after a failure. The Prometheus storage docs state that local storage is not clustered or replicated and should be managed like any other single-node database. Treat the data directory the way you would treat a single PostgreSQL primary: one owner, one disk path, monitored capacity and a tested backup plan.
The defaults show what the disk has to absorb. Prometheus stores samples in two-hour blocks, fronted by a write-ahead log, and keeps data for 15 days by default, with retention configurable by time or size. Before you choose a volume, confirm the retention you need, the number of active series your scrape configuration will produce, and the sample interval, then size the disk for the retained data plus room for compaction, which temporarily needs additional space while blocks are merged. Ask the vendor or your platform team for the disk latency and throughput the volume guarantees, because a slow or saturated volume shows up as missed scrapes and delayed rule evaluation rather than as a clear storage error.
Prometheus is licensed under Apache-2.0 and has no paid edition of the project itself, so the storage cost is infrastructure cost: the disks or volumes, their snapshots and replicas, any object storage used for long-term retention, and the staff who size and watch them. Those costs recur every month, while the initial setup is largely one-time. Before you sign off, ask your team or a partner to write down the disk class, capacity with headroom, backup target and monitoring for disk fill, and to state which of those items they will build and which they expect you to run. That written list is what makes a storage decision reviewable by your security, compliance and finance teams.
Why NFS and EFS are unsupported for the Prometheus data directory
The Prometheus storage docs describe local storage as the model: a single-node database that is not clustered or replicated. Shared file systems such as NFS and Amazon EFS add locking, latency and consistency behavior that the TSDB does not expect, and each card below is a place where that mismatch can show up as lost data or a failed start.
Storage model assumes a local filesystem
The TSDB writes two-hour blocks and a write-ahead log, and it expects the filesystem to behave like a local disk under its feet. The storage docs treat local storage as a single-node database to be managed on its own, not a shared volume. Before you choose a mount, confirm the current support statement in the official storage documentation and read the wording on network file systems closely.
Prometheus storage docsFile locking across clients
Prometheus relies on the filesystem to keep one writer on the data directory. On NFS and EFS, lock semantics depend on the protocol version, mount options and client behavior, so a stale lock or a second Prometheus instance pointed at the same path can corrupt blocks. Ask your storage team how locks are granted and released after a client or network failure, and test a forced failover on a scratch instance.
Latency on compaction and WAL writes
Compaction rewrites blocks and the WAL is fsynced at a steady cadence. Network round trips add latency to each of these operations, and a slow write path can back up ingestion and delay queries. Measure fsync latency and compaction duration on the candidate mount under realistic series counts, not only sequential throughput in a benchmark.
Consistency after network interruptions
A network file system can return a write as complete while the data has not reached stable storage, or can stall mid-operation during a partition. For a database that recovers by replaying its WAL, that gap can leave partially written blocks. Plan for recovery procedures and restore tests, and check how your chosen storage reports write errors to the application.
Hidden costs of a shared mount
A shared volume can look cheaper or easier to share with other tools, but the cost moves into recovery work. Each unplanned Prometheus restart on a damaged data directory needs an engineer to triage blocks, restore from backup and explain the gap in metrics. Ask for the expected cost of restore testing in any quote that proposes a network mount.
Confirm with a test, not a guess
Support statements and mount behavior change over time, and vendor documentation for a given NFS or EFS configuration may not match your kernel, client or mount options. Run a soak test with real ingestion, compaction and forced restarts on the exact configuration you plan to use, and record the results in your change record before you commit to that layout.
Local SSD or network block storage for Prometheus
A disk attached directly to the host gives Prometheus the most predictable write path. The TSDB appends samples to the write-ahead log and writes two-hour blocks, and both patterns are sensitive to write latency and to fsync behavior. A local NVMe or SSD keeps that path short, with no network hop between Prometheus and the disk. The trade-off is that the data lives on one machine. The Prometheus storage documentation says local storage is not clustered or replicated and should be managed like any other single-node database, so a failed host means the data on that disk is only as safe as your backups.
- Write latency: Local flash usually gives the lowest and most consistent fsync latency, which matters during compaction and WAL truncation.
- Failure domain: A host failure, RAID controller failure or disk failure takes the TSDB with it unless you have a tested restore path.
- Resize and snapshots: Growing the volume often means adding a disk, expanding a volume group or migrating data, and snapshot tooling depends on your filesystem and hypervisor.
- Cost drivers: Capacity per drive, redundancy (RAID or mirrored pairs), and the server hardware or instance class that carries the disk.
- Node replacement: Replacing the host means moving or restoring the data directory, so plan the restore before the failure.
Confirm with your hardware or cloud vendor the drive endurance rating, the RAID or controller write cache policy, and whether the instance type's local disk is ephemeral across stop and start.
Network block volumes, such as cloud block disks or SAN LUNs, attach to a compute instance over the network and can outlive it. That makes node replacement simpler, because the volume can be detached and reattached to a new host. The cost is latency: every write crosses the storage network, and the latency and throughput limits belong to the storage platform rather than to Prometheus. Compaction and WAL writes will show that latency first, so measure it under your real series load before you commit.
- Write latency: Expect higher and more variable fsync latency than local flash, and check the provider's documented latency and IOPS limits for the volume class.
- Failure domain: The volume survives a host loss, but a zonal or array failure can affect the disk and the instance at once, so review the placement of both.
- Resize and snapshots: Many block services support online volume expansion and point-in-time snapshots, but the filesystem must also be grown, and snapshots taken without quiescing Prometheus can capture an inconsistent TSDB.
- Cost drivers: Provisioned capacity, provisioned IOPS or throughput where offered, snapshot storage, and cross-zone traffic.
- Node replacement: Reattaching the volume is faster than restoring from backup, but only if the new instance is in the same zone or array.
Confirm with your storage vendor the fsync latency you can expect for your volume class, whether snapshots are crash-consistent or application-consistent, and whether expansion needs downtime on your filesystem.
In Kubernetes, the storage choice is expressed through PersistentVolumes. A local volume pins Prometheus to one node, so the pod can only run where its data lives. A network-backed persistent volume lets the pod reschedule, but it inherits the latency and failure characteristics of the block service behind the storage class. Either way, the scheduler's view of the disk affects how the StatefulSet recovers, so the platform team and the Prometheus owner should agree on the rules before the first incident.
- Write latency: Local volumes match the host case; network-backed classes match the block case, and the storage class parameters determine the performance tier.
- Failure domain: A local volume ties the pod to one node, so a node failure blocks Prometheus until the node returns or the data is restored elsewhere.
- Resize and snapshots: Volume expansion depends on the CSI driver and the storage class allowing it, and volume snapshot support is a CSI feature that varies by driver.
- Cost drivers: Node pool sizing for disk capacity, storage class tier, and any spare capacity kept for compaction.
- Node replacement: Draining a node with a local volume can strand the pod, so plan node maintenance around the Prometheus pod's placement.
Confirm with your Kubernetes distribution or CSI driver vendor which storage classes allow expansion, which support snapshots, and how the StatefulSet behaves when its node is drained or lost.
Storage options compared for a single Prometheus server
This table compares local SSD, network block volumes and Kubernetes persistent volumes for a single Prometheus TSDB across latency, host durability, snapshots, resize, backup fit and typical fit. Read each row as a question to put to your platform team, since the answers depend on your hypervisor, cloud and storage array. The main takeaway is that the Prometheus storage docs treat local storage as single-node, so durability and recovery come from your backup design rather than from the volume alone.
| Criterion | Local SSD on the host | Network block volume | Kubernetes persistent volume |
|---|---|---|---|
| Write latency for the WAL and head block | Typically lowest and most consistent, since no network hop is involved | Depends on the network and array, so measure it under load before you commit | Inherits the latency of the backing storage class, which may be local or network |
| Durability if the host fails | Data stays on the failed host until it is recovered, so backups matter most | Data survives a host loss if the volume can be reattached elsewhere | Depends on the storage class and whether the volume can move with the pod |
| Snapshot support | Usually depends on the host filesystem or LVM setup, so confirm with the platform team | Often offered by the array or cloud, but confirm consistency for a running TSDB | Depends on the CSI driver and whether it supports VolumeSnapshots |
| Resize | Often requires adding disks or repartitioning, which can mean downtime | Often online expansion, but confirm the filesystem and driver support it | Depends on allowVolumeExpansion in the storage class and the CSI driver |
| Backup fit | Needs an external copy process, such as snapshots copied off the host | Fits array or cloud snapshot schedules, which still need restore testing | Fits CSI snapshots or backup tools, which must be verified against Prometheus data |
| Good fit when | Latency matters most and you run one well-monitored server with a tested backup | You want volumes that can be reattached or resized without rebuilding the host | Prometheus runs in a cluster and your storage class already meets the same durability bar |
| Confirm with the platform team | Disk model, RAID level, filesystem, free space for compaction and backup path | Protocol, IOPS and latency under load, snapshot consistency, and reattach time | Storage class, reclaim policy, expansion support, CSI snapshot support and node affinity |
How Prometheus, its data directory and remote storage fit together
The diagram starts with the Prometheus server writing samples to its write-ahead log, which is then cut into two-hour blocks on a local data volume. Compaction runs inside that same volume, so the disk must have headroom for it. Remote write is optional and sends a copy of samples to long-term storage, while the backup path leaves the host through a snapshot. Check that the data volume is local and that the backup target sits outside the host's trust boundary.
Data flow from the server to local blocks, optional remote storage and off-host backup.
Configuring Kubernetes persistent volumes for Prometheus
This sequence gives a Prometheus pod a persistent volume that survives restarts and rescheduling, with the storage class, claim size and node placement chosen on purpose. It ends with a verified local filesystem and proof that the pod reattaches to the same data.
Choose the storage class and binding mode
The platform team lists the storage classes available in the cluster and picks one backed by a local SSD or a block volume that Prometheus can use as a local filesystem. They check the volume binding mode on each class. A wait-for-first-consumer mode delays volume creation until the pod is scheduled, which helps when the volume must sit in the same zone as the node. Ask the cluster administrator to confirm the provisioner, the binding mode and the default class, since these vary by distribution and cloud. The step is done when the chosen class and its binding mode are written down in the deployment plan.
Create the PersistentVolumeClaim with headroom
Size the claim from the retention you configured plus headroom for compaction and growth in series count. The storage page explains how to estimate the base need, and the size should cover both the retention window and the extra space compaction uses while it writes new blocks. Set the access mode to ReadWriteOnce for a single Prometheus replica, and confirm that the class in your cluster supports that mode. The claim is done when
kubectl get pvcshows the claim as Bound to a volume of the requested size.Mount the claim at the TSDB path
Reference the claim in the pod spec, or in the StatefulSet claim template if the chart or operator creates one, and mount it at the Prometheus data directory, which is set with the
--storage.tsdb.pathflag. Keep the mount on a dedicated volume rather than the container root filesystem. Review the StatefulSet and claim template every time the chart or operator changes, because upgrades can rename claims or recreate them with a different size or class. The step is done when the pod spec shows the volume mounted at the data path and the StatefulSet renders the same claim name after a dry run.Pin the pod to a node or zone when storage is local
If the volume is node-local, such as a local SSD or a local persistent volume, add a node affinity rule or node selector so the scheduler places the pod only on the node that holds the volume. Network block volumes are usually zonal, so a zone constraint is the minimum to set. Pinning trades scheduling flexibility for data locality, so a node failure needs a planned recovery path. Ask the storage owner which failure domain the volume belongs to. The step is done when
kubectl get pod -o wideshows the pod on the intended node and the pod spec contains the matching affinity or zone rule.Verify the mount is a local filesystem
Open a shell in the running container and check the filesystem type of the data path with
df -Tand the mount table in/proc/mounts. Prometheus should see a local filesystem such as ext4 or xfs. If the output shows NFS, EFS or another network file system, stop and move the claim to a supported class, because the Prometheus storage documentation does not support those for the TSDB. Also confirm that the volume has write access for the Prometheus user. The step is done when the filesystem type is recorded and the data directory is writable by the process.Write data and confirm the TSDB directory
Wait for Prometheus to start and complete a scrape cycle, then list the data directory and confirm that the
waldirectory and block directories appear on the mounted volume. The first block appears after the two-hour head compaction interval, so a new deployment may show only the WAL for a while. Check the Prometheus status page for the storage path and retention settings. The step is done when the data directory contains the expected WAL files and the status page reports the storage path you mounted.Confirm the pod restarts on the same data
Delete the pod with
kubectl delete podand let the StatefulSet or deployment recreate it. After the new pod is ready, confirm that the claim is still bound to the same volume and that the series and time range from before the restart are still queryable. Compare the block list and the oldest timestamp with the values recorded earlier. If the data is missing, check whether the claim was recreated or whether the pod landed on a different node without its volume. The step is done when the restarted pod serves the earlier data from the same volume name.Confirm the reclaim policy before relying on it
Ask the cluster administrator to confirm the reclaim policy on the storage class and on the persistent volume. A Retain policy keeps the underlying data after the claim is deleted, while a Delete policy removes it. Record the policy in the runbook and note who is allowed to delete the claim. Include this in any backup plan, since the reclaim policy does not replace a backup. The step is done when the reclaim policy is recorded in the runbook and the team has agreed who can delete the claim.
Security and operations of the storage layer
The disk that holds the TSDB is also a security boundary and an operational risk. The cards below cover what sits on that disk, who can reach it, how copies of it travel, which admin endpoints can change it, and how to see the disk filling before Prometheus stops writing.
Encrypt the data volume at rest
The TSDB stores every series label set and sample value in plain files under the data directory, so the volume holding it should be encrypted with keys your organization controls. Check whether encryption is provided by the storage array, the cloud volume service or the host filesystem, and who holds the keys. Confirm that the encryption survives snapshots and that a restored volume can still be decrypted by the recovery team.
Restrict access to the data directory
Anyone who can read the data directory can read every metric and label, and anyone who can write it can corrupt blocks. Give the Prometheus service account sole ownership of the directory, remove group and world permissions, and keep backup agents and monitoring sidecars out of it unless they need read access. Review who has shell access to the host, since root access bypasses application controls.
Treat backup copies as sensitive data
A copy of the data directory or a snapshot contains the same series data as the live server, including label values that may name hosts, customers or internal services. Store copies in the same classification tier as the source, encrypt them in transit and at rest, and set retention so old copies are removed on schedule. Ask whether your backup vendor can exclude the WAL directory and whether restore tests are part of the plan.
Keep admin APIs off by default
Snapshot and delete operations run through admin HTTP endpoints that are disabled by default. The Prometheus security model says --web.enable-admin-api turns on destructive operations, and --web.enable-lifecycle adds reload and shutdown endpoints. Enable the admin API only for the period a backup or deletion runs, restrict it to a management network, and log each call to it. Confirm the setting in every environment, including the ones built from older templates.
Security modelAlert on disk fill before writes stop
Prometheus writes continuously, and a full volume stops ingestion and can leave blocks partially written. Alert on free space and on the rate of change, and set the alert threshold with compaction headroom in mind, since compaction temporarily needs room for new blocks. Also watch the retention size you have configured, so that the space reserved for retention and the volume actually available stay consistent after any resize.
Questions buyers ask about Prometheus storage
What drives the cost of storage for Prometheus?
The main drivers are disk capacity, disk speed and the number of copies you keep. Capacity depends on how many series you ingest, how many samples each series produces at your scrape interval, and how long you retain data, which defaults to 15 days in the Prometheus storage docs and can be set by time or size. Disk performance matters because compaction and queries both read and write heavily. Costs split into infrastructure you pay for every month (volumes, snapshots, replicas, backup copies) and one-time work (sizing, configuration, testing restores). Ask any partner to show the assumed series count, retention and scrape interval behind a quote.
Is a local disk or a block volume cheaper to run for Prometheus?
Neither is cheaper in every case, because the cost follows performance and failure handling rather than the price per gigabyte alone. A local SSD usually gives fast, predictable I/O and avoids network latency, but the data is tied to one node and must be backed up separately. Network block storage can be reattached after a node failure and is easier to resize, but its performance depends on the provider and the volume class you pick. The Prometheus storage docs say local storage is not clustered or replicated and should be managed like any other single-node database, so budget for backups and restore testing either way. Confirm the IOPS and throughput guarantees of any block volume with your provider before you compare prices.
How long does storage work take, and what does it need from my team?
Duration depends on how many environments you run, whether Kubernetes persistent volumes are involved, and how much existing monitoring data must be kept. The work usually covers measuring current series and sample rates, choosing a disk class, setting retention and compaction headroom, configuring volumes, and testing a restore. Your team must provide access to the Prometheus servers and their metrics, the infrastructure accounts or clusters where storage is created, the retention rules your compliance owners require, and a person who can approve the storage design. A fixed-scope agreement fixes the duration in writing before work starts, so ask for the timeline with its assumptions listed.
Can my team size Prometheus storage without outside help?
Yes, many teams can size storage alone if they have the time and someone who understands their series counts. The inputs are current ingestion rate, average sample size, scrape interval, retention period and headroom for compaction, which needs free space for compacting blocks. The Prometheus storage docs describe the two-hour block layout and the write-ahead log, so the team can model growth from those facts. The hard part is forecasting cardinality growth from new deployments and labels, and checking that disks stay below alert thresholds during compaction. A partner adds value when you need a second review, a documented design for auditors, or tests that prove restores work.
Is Prometheus free to run, and what do I pay for?
The Prometheus project is licensed under Apache-2.0 according to its GitHub repository, and there is no paid enterprise edition of the project itself. You do not pay a license fee to run the server, Alertmanager or the Pushgateway. Your costs come from infrastructure (compute, storage, network), the implementation work to design and configure it, and the people who operate it, including upgrades and on-call response. If you compare against a managed service, add the subscription fee to the same infrastructure, implementation and staffing costs you would carry for self-hosting. Confirm the license terms of any extra components or plugins you add, since they may be licensed separately.
When does remote storage change the storage answer?
Remote storage changes the answer when you need retention longer than a single server can hold cleanly, when you want data to survive the loss of a Prometheus host, or when you need a larger, shared query layer. Prometheus supports remote write and remote read, so samples can be sent to external long-term storage systems. That does not remove local disk needs: the local TSDB still holds recent data, the write-ahead log and compaction headroom. Remote storage adds its own infrastructure, licensing or service costs and a second system to back up and monitor. Review the scaling and long-term storage pages before you commit to a design.
What should I check before I choose a disk for Prometheus?
Check the disk against the write-ahead log, block compaction and query load, not only its size. Confirm that the volume has enough free space for compaction, which needs headroom beyond the stored data, and that the disk's latency stays low during peak scrapes. Do not use NFS or EFS for the TSDB because they are not supported storage for it according to the Prometheus storage docs; confirm the current support statement with the Prometheus project before you finalize a design. In Kubernetes, verify the storage class, volume expansion behavior and what happens to the volume when a pod is rescheduled.
How DeployOpen scopes Prometheus storage work
DeployOpen scopes storage work as a fixed-scope engagement, with the scope, deliverables and timeline agreed in writing before any build starts. The first step is a review of how much data the Prometheus server must ingest, how many series and samples each scrape job produces, and how long the team needs local retention before data moves to any external long-term store. Those answers drive the volume decision. The review also records the storage platform the client already runs, whether that is local NVMe, a SAN, a cloud block volume or a Kubernetes storage class, and which of those the client's operations team can support. DeployOpen performs this work inside the client's own cloud accounts, data centers or air-gapped networks, so no monitoring data leaves the client's environment during the review.
The volume design follows from that review. DeployOpen works through the disk type and filesystem, the volume size with headroom for compaction and the write-ahead log, the retention settings that match the agreed window, and, for Kubernetes, the persistent volume claim, storage class and reclaim policy. The engagement ends with documentation a client can hand to its own engineers: a sizing worksheet that shows how the numbers were derived, alert rules that fire when free disk falls below the agreed threshold, and a runbook for expansion. Ask the team to confirm which disk growth and alert thresholds apply to its own environment, because those values depend on its ingestion profile and its change window.
After handover, many clients keep a retainer for ongoing support. A retainer typically covers version upgrades, periodic sizing reviews as new services are onboarded, and response to storage alerts. Quotes follow from the written scope, and DeployOpen does not publish a price list. When requesting a quote, ask for the review hours, the design and documentation deliverables, the assumptions about the client's infrastructure, what the client must provide, and which items are one-time and which recur under a retainer. Ask the Prometheus storage documentation to be read alongside the scope, since it states that local storage is not clustered or replicated and must be managed like any other single-node database.

