Grafana Loki is an open-source, horizontally scalable log aggregation system from Grafana Labs that indexes a small set of labels for each log stream instead of the full text of every log line. Grafana’s own Loki overview calls it “a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus.” That design keeps the index small and puts compressed log data in inexpensive object storage. It also means your labeling decisions largely determine query speed, cost, and how much operational work the cluster creates. The sections below cover what Loki is, how its label-based indexing works, its architecture, getting logs in, querying with LogQL, when to use it, common pitfalls, deployment and hosting options, how it compares with Elasticsearch, and related concepts, followed by an FAQ.
What Is Grafana Loki?
Grafana Loki stores logs as streams identified by labels, the same key-value model Prometheus uses for metrics, and it queries them with LogQL, a language modeled on PromQL. The Loki OSS page records that the project “was started at Grafana Labs in 2018, and announced at KubeCon Seattle.”
Grafana Labs credits Tom Wilkie with creating Loki in early 2018, and Loki reached GA with v1.0.0 in November 2019.
Loki shipped under Apache 2.0. Grafana Labs later relicensed Grafana, Loki, and Tempo to AGPLv3, keeping plugins, agents, and certain libraries under Apache. The grafana/loki repository now states that Loki “is distributed under AGPL-3.0-only.” As of late November 2026, the GitHub releases page marks v3.7.10 (2026-11-13) as the latest stable release, with v4.0.0-rc.4 (2026-11-20) available as a release candidate.
Loki is the log store in the Grafana stack. Grafana handles visualization, Mimir stores metrics, Tempo stores traces, Pyroscope handles profiling, and Grafana Alloy collects telemetry. Loki, Mimir, Tempo, and Pyroscope all keep their data on object storage, so a team running the full stack operates several separate systems that share a storage pattern.
Grafana Loki vs. the Norse God and Marvel’s Loki
Most people asking “What is Loki?” in an infrastructure context mean Grafana Loki, the log aggregation system. The Norse trickster god and the Marvel character share the name and nothing else. This page covers only the logging tool.
How Loki’s Label-Based Indexing Works
Loki groups incoming log lines into streams, and each unique combination of label values defines one stream. A line labeled {cluster="prod", namespace="checkout", app="payments"} lands in a different stream from one labeled {cluster="prod", namespace="checkout", app="cart"}. The labels documentation explains that “the content of each log line is not indexed. Instead, log entries are grouped into streams which are indexed with labels.”
Two file types hold the data. The index is a table of contents that maps a set of labels to where the logs for those labels are stored, and a chunk is a container for the log lines of one stream (a unique set of labels) over a specific time range. Ingesters compress chunks and write them to object storage such as Amazon S3, Google Cloud Storage, or Azure Blob Storage. The index uses TSDB, a format originally built by Prometheus maintainers for time series data, and Loki stores it in the same object store as the chunks.
Because only labels are indexed, the index stays small.
- Grafana Labs reports that internally it holds petabytes of log data with an index less than one percent of the log data size.
- At a GrafanaCON 2024 session, a speaker described an operator ingesting 43 terabytes a day with just shy of 200 megabytes of index.
Both figures come from Grafana Labs and describe Loki alone, not a head-to-head test.
Full-text systems work the other way: they split every log line into tokens and insert an entry for every single token, which makes arbitrary searches fast and the index large. Loki moves that cost to query time.
It uses labels to find streams, then fetches, decompresses, and scans the matching chunks with substring or regex filters. Grafana Labs frames the trade-off directly: a “smaller index and parallel brute force querying vs. a larger/faster full-text index is what allows Loki to save on costs versus other systems.”
Loki Architecture: Distributor, Ingester, Querier and Compactor
Loki splits writes, reads, and storage maintenance into separate components that you can run in one process or scale independently. The diagram below shows how they connect:
Each component has a narrow job:
- Distributor: Accepts push requests, validates each stream against tenant limits, and sends each valid stream to a set of ingesters chosen by consistent hashing.
- Ingester: Builds chunks in memory per stream, persists them to object storage, and answers queries for recent data it still holds.
- Query frontend: Splits a LogQL query into sub-queries, hands them out, merges the results, and caches them.
- Query scheduler: Holds an in-memory queue per tenant so one tenant’s heavy queries cannot starve another’s.
- Querier: Runs LogQL against ingesters and object storage, then deduplicates replicated results.
- Index gateway: Serves index lookups so queriers get chunk references without repeatedly reading the object store.
- Compactor: Merges the many index files ingesters ship into one file per day and tenant, and runs retention and deletion.
The compactor usually runs as a single instance. Optional components also exist: a ruler for alerting and recording rules, and a pattern ingester that feeds the Patterns tab in Grafana Logs Drilldown.
The Loki Write Path
A write starts when a client sends an HTTP POST with streams and log lines to a distributor behind a load balancer. The distributor checks that labels are valid Prometheus labels, that timestamps are not too old or too new, and that lines are within the size limit. It then enforces the per-tenant ingestion rate, which defaults to ingestion_rate_mb: 4 with ingestion_burst_size_mb: 6. Over the limit, the client gets HTTP 429.
Next, the distributor hashes each stream’s labels and looks up replication_factor ingesters on the hash ring, taking the first token larger than the hash and the next tokens clockwise that belong to different ingesters. The replication factor is generally 3. Loki uses Dynamo-style quorum: a write succeeds when floor(replication_factor / 2) + 1 ingesters acknowledge it, so two of three with the usual setting. Otherwise the distributor returns a 4xx or 5xx error.
The ingester appends each line to an open chunk for that tenant and label set and records it in a write-ahead log on local disk. The WAL is enabled by default (wal.enabled: true) and is replayed on restart to recover acknowledged data. Chunks are cut and flushed to object storage when any of these conditions is met:
- Target size:
chunk_target_sizedefaults to 1572864 bytes (1.5 MB compressed). - Idle stream:
chunk_idle_perioddefaults to30mwithout new lines. - Maximum age:
max_chunk_agedefaults to2h. - Shutdown or explicit flush:
flush_on_shutdowndefaults tofalse, and the configuration best-practices page recommendstrue.
Chunks default to gzip encoding, while the best-practices page recommends chunk_encoding: snappy. When ingesters flush replicated copies, Loki hashes chunks by tenant, labels, and contents, so identical replicas are not written twice.
The Loki Read Path
A query enters through the query frontend, which splits it by time using split_queries_by_interval (default 1h). A day-long query becomes 24 one-hour sub-queries. The frontend also asks the index gateway for the log volume a query will touch and uses that to decide how many shards each time split gets. Sub-queries go into per-tenant FIFO queues in the query scheduler.
Queriers pull sub-queries, send them to all ingesters for in-memory data, and fall back to object storage through the index gateway, which returns the chunk references to fetch. By default, queries reach ingesters only for data within query_ingesters_within: 3h. The querier then deduplicates replicated entries that share the same nanosecond timestamp, label set, and log message, and returns its result to the frontend, which waits for every sub-query before merging.
Caching cuts repeat work at several layers. The results cache serves repeat metric queries, the chunk cache keeps recently fetched chunks out of object storage, and the frontend keeps a negative cache of empty results for log queries. TSDB does not use an index cache; with TSDB, attached disks or persistent volumes act as the cache.
Object Storage Backends: S3, GCS and Azure Blob
Loki stores both chunks and the index in a single object store. The supported chunk stores are “aws (alias s3), azure, gcs, alibabacloud, bos, cos, swift, filesystem, or a named_store.” S3-compatible services such as MinIO also work. For Helm-based production installs, Grafana Labs now points you to an external backend: the built-in MinIO subchart in the community chart is deprecated, and the notice suggests AWS S3, GCS, or Azure Blob.
The filesystem backend is for single-binary testing and development, because it is “susceptible to data loss as it’s unreplicated,” and simple scalable deployments do not support it at all.
For the index, use TSDB with schema v13: “tsdb and v13 are not only recommended, they are required in most cases,” because structured metadata and native OTLP ingestion are on by default and need both. BoltDB-shipper remains accepted for unmigrated 3.x installs but “is being removed in Loki 4.0,” and Cassandra, DynamoDB, and Bigtable are deprecated as chunk stores. A new install schema looks like this:
Getting Logs into Loki with Promtail, Grafana Alloy and Other Clients
Grafana Alloy is the collector Grafana Labs supports for Loki today. Promtail, the original Loki agent, reached end of life on March 2, 2026, after a long-term support period that began on February 13, 2025, and it gets no further updates. Its code was merged into Alloy, which Grafana Labs describes as its distribution of the OpenTelemetry Collector. The lambda-promtail client is not part of the deprecation.
If you still run Promtail, Alloy converts an existing Promtail configuration in one command:
Alloy also accepts a --config.format=promtail flag to run an unconverted Promtail config temporarily while you migrate.
Fluent Bit has a built-in Loki output plugin. It sets index labels with labels and attaches high-cardinality fields with structured_metadata, both as comma-separated key=value lists that can read record fields. The Fluent Bit 3.1 manual shows these two settings inside the Loki output:
The pod name goes into structured metadata instead of a label, which keeps stream counts bounded. Grafana’s own Fluent Bit community plugin is no longer actively maintained, so use the official Fluent Bit plugin.
The OpenTelemetry Collector sends logs to Loki’s native OTLP endpoint over HTTP, which Grafana Labs calls the recommended way to send logs to Loki. To set it up, define an OTLP receiver, a batch processor, and an OTLP HTTP exporter pointing at your Loki OTLP base URL, connect them under service.pipelines, save the file, validate it, and start the Collector with --config. If telemetry does not arrive, check the receiver configuration and the pipeline references under service.pipelines first, then add the debug exporter to the pipeline to confirm data reaches it, and last check the exporter endpoint, credentials, and connectivity to Loki. The exporter appends /v1/logs to the base URL for log data, so give it the base URL rather than a full logs path:
On the Loki side, OTLP ingestion requires allow_structured_metadata: true, which is the default in Loki 3.0 and later. Loki turns a default set of resource attributes into index labels, including k8s.namespace.name, k8s.deployment.name, k8s.cluster.name, container.name, and cloud.region, and stores every other resource, scope, and log attribute as structured metadata. Grafana Labs no longer recommends k8s.pod.name and service.instance.id as default labels because of their cardinality, and advises new users to move them to structured metadata in Alloy or the Collector. You can add an index label with limits_config:
Whatever client you pick, labels are set at collection time. Changing them later means changing every collector config that produces them, and existing data keeps the old labels.
Querying Logs with LogQL
Every LogQL query starts with a stream selector in braces and adds an optional pipeline of filters, parsers, and label filters. LogQL has two query types: log queries return lines, and metric queries compute values from lines. The examples below come from Grafana’s LogQL documentation and query editor docs.
A stream selector picks streams by label, the only part of the query that uses the index:
Expected output: every log line from streams labeled app="payments" in the selected time range, newest first.
A line filter greps the chunks those streams return. |= keeps lines containing a string, != drops them, and |~ and !~ do the same with regular expressions:
Expected output: payments lines that contain “error” and do not contain “healthcheck.” Filters are case-sensitive, and unlike PromQL label matchers, the regex line filters are not anchored.
Parsers extract fields from each line into temporary labels you can filter on. The json parser handles JSON lines:
Expected output: lines containing “error” whose parsed JSON level field equals error. The line filter runs first, so the parser only processes lines that already match.
The logfmt parser handles key=value lines, and label filters on parsed values understand durations and byte sizes:
Expected output: query-frontend lines from metrics.go where the parsed duration exceeds 10 seconds and throughput_mb is under 500. If a value cannot be converted, the line is kept and tagged with an __error__ label.
The pattern parser extracts fields from semi-structured lines such as access logs, using <name> for captures and <_> to skip text:
Expected output: nginx access-log lines whose extracted method is GET, with url, protocol, and status available as labels for further filtering. Grafana’s docs describe the pattern parser as easier to write and faster than regexp.
Metric queries wrap a log query in a range aggregation such as rate or count_over_time:
Expected output: one time series per MySQL stream, counting log lines in each five-minute window.
Expected output: the per-second rate of non-timeout errors with a duration above ten seconds, one series per host. The metric queries docs use this exact example.
If you write PromQL, most of this reads as familiar. Label matchers use the same =, !=, =~, and !~ operators, ranges use the same [5m] brackets, offset must follow the range selector immediately, and sum, topk, by, and without behave the same way. Two differences matter. LogQL’s regex line filters are not fully anchored, while PromQL label regexes are, and Loki lets you group directly on range aggregations such as quantile_over_time(...) by (route), which Prometheus does not allow. Metric queries return nothing for empty intervals, so you use the PromQL pattern or on() vector(0) to zero-fill.
When to Use Grafana Loki
Loki fits best when you already know where to look and need the lines from a known source over a known window. Kubernetes logs match that shape: cluster, namespace, workload, and container make natural, bounded labels, and most investigations start from “show me checkout’s logs around 14:02.” If your metrics and dashboards already live in Grafana, Loki adds logs with label names that line up with your Prometheus series, so moving from a metric spike to the matching log stream is a label copy.
Long retention on object storage is the other strong case. Chunks are compressed and the index is small, so keeping weeks or months of logs costs roughly what the object store charges. Dropbox’s GrafanaCON 2025 talk, published as “How Dropbox Scaled Loki to 5 Petabytes,” describes adding on-prem storage as a second backend to speed up queries and extend retention to 30 days.
Skip Loki, or pair it with something else, when your main workload is open-ended search. Security analytics, threat hunting, and “find this request ID across every service for the last month” queries all depend on full-text indexing that Loki does not have. An educational case study on the HLD Handbook reports that Character.AI chose ClickHouse over Loki because label-based systems require knowing log structure ahead of time, while engineers need free-text keyword search during incidents.
Common Loki Pitfalls and Misconceptions
Most Loki trouble traces back to treating it like the log tool you used before. The three misconceptions below cause the bulk of slow queries, rejected writes, and surprise engineering time.
High Label Cardinality and Stream Explosion
Misconception: “More labels make queries faster.” Correction: every label multiplies your stream count, and Loki slows down as streams multiply. The stream count is streams = label1_values × label2_values × ..., and the advice is to design for fewer than 80,000 streams.
- Take a label set of
cluster(2 values),namespace(10),app(25), andlevel(4). That produces at most 2 × 10 × 25 × 4 = 2,000 streams, well under the defaultmax_global_streams_per_userof 5,000 active streams per tenant. Ingesters build chunks for each stream, and a selector such as{namespace="checkout", app="payments"}narrows a query to a handful of streams. - Now add
user_idas a label, with 50,000 active users. The worst case becomes 2,000 × 50,000 = 100 million streams. In practice the distributor starts rejecting writes with astream_limitHTTP 429 long before that.
If you raise the limit to make the errors stop, high cardinality “causes Loki to build a huge index and to flush thousands of tiny chunks to the object store.” You then pay for many small object-store reads instead of a few large ones, and ingester memory exhaustion, crashes, and index query timeouts follow beyond roughly 200,000 streams.
Keep user_id, trace IDs, request IDs, and pod names out of labels. Attach them as structured metadata, which is stored with each line without creating new streams, or parse them at query time. Loki enforces max_label_names_per_series: 15 by default, and you should identify your logs with fewer than 15 labels. You can check what clients are sending with logcli series --analyze-labels.
Expecting Elasticsearch-Style Full-Text Search
Misconception: “A line filter searches an index.” Correction: a line filter reads every chunk in every stream your selector matches, for the whole time range. {cluster="prod"} |= "NullPointerException" over seven days downloads and decompresses a week of every production stream before it can return a single line. That is the brute-force half of Loki’s design, and it is fast only when the selector and time range are tight.
Scope queries in this order:
- Narrow the selector first: Add
namespace,app, orcontainerlabels so the index returns fewer streams. - Shorten the range: Search the window around the incident, then widen if needed.
- Filter before parsing: Put
|=and|~beforejsonorlogfmtso the parser only touches matching lines. - Filter on structured metadata early: Place structured-metadata label filters before any parser, the form required for bloom-filter query acceleration.
Bloom-filter acceleration is not a general fix. In the latest release it is experimental and aimed at Grafana Cloud customers ingesting more than 75 TB of logs a month, and it is marked deprecated in the next docs channel and the repository upgrade guide. Grafana Labs has a different answer in progress: after acquiring Logline, it put needle-in-the-haystack log queries into a limited private preview in Grafana Cloud Logs and said it plans to bring them to Loki OSS with the next major release.
The Operational Cost of Running Loki at Scale
Misconception: “Loki is cheap because storage is cheap.” Correction: you also pay for ongoing engineering time to keep the cluster healthy. A distributed Loki deployment means operating distributors, ingesters, queriers, query frontends, schedulers, index gateways, a compactor, caches, and the object store, plus any separate Prometheus or Mimir and Tempo systems you run beside it.
Loki ships with a 4 MB/s ingestion rate, 3 MB/s per stream, 5,000 active streams per tenant, a 256 KB maximum line size, and a one-minute query_timeout, which should not be raised past five minutes. Per-stream limits cannot be fixed by adding ingesters, because each stream always hashes to the same ingesters. Dropbox’s GrafanaCON 2025 speakers called their limits “very, very unpopular” with internal users before relaxing them.
- Retention and deletion depend on the compactor, which usually runs as one instance. Setting a retention period does nothing unless you also set
retention_enabled: truein thecompactorblock, and chunks are removed asynchronously afterretention_delete_delay. - Upgrades carry real migration work: Loki 3.0 dropped the label limit from 30 to 15, and you had to migrate the index from BoltDB to TSDB before upgrading from 2.x. Loki 4.0 removes simple scalable mode and BoltDB-shipper.
The architecture itself is also changing. InfoQ reports that Grafana Labs rearchitected Loki around Kafka as the durability layer, replacing replication at ingestion. One engineer quoted in that article said, “You will now have object storage and Kafka for any distributed installation of Loki.” In current configuration, kafka_writes_enabled still defaults to false.
Loki Deployment Modes and Hosting Options
How you run Loki depends on daily volume and on whether you want to operate it at all. Self-hosting gives you the AGPL software for free and leaves every component to you, while Grafana Cloud Logs runs Loki as a managed service billed by usage.
Monolithic, Simple Scalable and Microservices Modes
Loki runs in one of three deployment modes, and the stored data does not depend on the mode, so you can redeploy under a different mode with minimal configuration changes:
- Monolithic: Runs every component in one process with
-target=all. It suits up to roughly 20 GB per day, and you can run a highly available version with two instances,memberlist_config, a shared object store, andreplication_factor: 3. - Simple scalable (SSD): Splits Loki into
read,write, andbackendtargets and scales to close to a terabyte per day. It requires object storage and a reverse proxy in front of Loki. - Microservices: Runs each component as its own process with its own
target. Grafana Labs recommends it for large production installs on Kubernetes.
Simple scalable mode is on its way out: SSD “is being deprecated and will be removed with the Loki 4.0 release,” you “will not be able to run Loki 4.0 in SSD mode,” and HA monolithic mode is the recommended replacement for most SSD use cases. Migration guides exist for moving from SSD to HA monolithic and from SSD to microservices.
The Helm chart moved as well. As of March 16, 2026, the open-source Loki chart is maintained by Grafana Champions and the community in the grafana-community/helm-charts repository, and the chart in the Loki repository serves Grafana Enterprise Logs users in maintenance-only mode. The community chart now defaults to deploymentMode: Monolithic, so if you run SSD you have to set deploymentMode: SimpleScalable explicitly to keep it. Install the community chart with:
Self-Hosted Loki vs. Grafana Cloud Logs
Self-hosted Loki costs nothing to license under AGPL-3.0, and you pay for compute, object storage, caches, and the engineering time covered in the operational cost section. Grafana Cloud Logs removes the operations work and bills by usage. Your telemetry leaves your infrastructure in this model, since Grafana Cloud is a managed SaaS. Bring-your-own-cloud deployment is limited to Grafana’s Enterprise tier.
Grafana’s pricing page, retrieved on 2026-11-22, lists these logs terms:
The Pro rates are “starts at” prices with automatic volume discounts. The page does not list a separate per-GB query charge for logs, and it references a logs query fair-use policy whose terms were not shown in the retrieved page. Grafana also offers Adaptive Logs as an in-product control for reducing billed volume.
Loki vs. Elasticsearch and the ELK Stack
Elasticsearch and Loki make opposite bets on where to pay for search. Elasticsearch builds a Lucene inverted index at ingest so any term query returns quickly; Loki keeps a tiny label index and pays at query time by scanning chunks. The table below summarizes the differences:
Storage size is where the gap is easiest to measure. In one published benchmark that ingested 500 GB of logs into each system, Loki used 142.2 GB of disk and Elasticsearch used 388 GB, with Loki indexing only the method and protocol keys while Elasticsearch indexed every field. Those results come from one benchmark workload, and your own figures will vary with log format, labels, and retention settings.
In OpenShift Logging, the ingest side shows the same trade-off: Elasticsearch indexes records completely during ingestion while Loki indexes a few fixed labels and defers parsing, so Loki collects logs faster. Red Hat has since replaced Elasticsearch with Loki as the managed log store in OpenShift Logging 6.0.
Elasticsearch’s operational weight sits in memory. It needs enough memory for large merge operations and becomes unresponsive without it. Loki moves that pressure to object storage: Red Hat recommends solid-state drives for the object store when you are not using a cloud provider’s.
Pick by workload:
- Kubernetes application logs read by service and time window: Loki, especially if Grafana already holds your metrics.
- Long retention at low storage cost: Loki on object storage.
- Security analytics, compliance search, and ad hoc term search across all logs: Elasticsearch or OpenSearch.
- Heavy aggregations across many log fields: Elasticsearch, or a columnar store such as ClickHouse.
Related Concepts: Prometheus, Tempo, OpenTelemetry and ClickHouse Logging
Loki borrows its data model from Prometheus, which explicitly says it is not for logs; the official FAQ line is “Don’t use Prometheus for logs!” Grafana Tempo is Loki’s tracing counterpart in the Grafana stack, queried with TraceQL and backed by object storage. OpenTelemetry is the vendor-neutral standard for producing and shipping all three signals, and Loki’s native OTLP endpoint lets a single Collector pipeline feed it alongside a trace backend. Correlating a log line with a trace then depends on both signals carrying the same trace_id and resource attributes.
ClickHouse represents a third design for log storage: a columnar database that stores each field as a compressed column and adds skip indexes and full-text text indexes per column. Text indexes are generally available from version 26.2. ClickHouse also reports that Netflix ingests 5 petabytes of logs daily on it. Compared with Loki, ClickHouse lets you search and aggregate on arbitrary fields without choosing labels in advance, at the cost of running a database cluster.
groundcover uses ClickHouse for logs inside a BYOC (bring your own cloud) deployment, where the data plane runs in your own cloud account and groundcover manages only the control plane. groundcover’s architecture docs describe the storage split: ClickHouse in your environment stores logs, traces, and Kubernetes events, VictoriaMetrics stores metrics, and both stay inside your VPC.
Telemetry arrives through OTLP over gRPC and HTTP from existing Collector pipelines, and from groundcover’s eBPF sensor, a DaemonSet that collects logs, metrics, and traces at the kernel without SDKs or code changes. Because logs and traces live in the same store, logs that carry trace_id and span_id link directly to their traces, and you query them with gcQL, a pipe-based language, or SQL. Pricing is per monitored host rather than per ingested gigabyte, so you don’t have to drop or sample log volume to stay under a bill.
If you want to validate the architecture on your own cluster, the free plan includes BYOC and requires no credit card. Deploy groundcover’s eBPF sensor on one cluster and evaluate full-cluster visibility within hours under the documented deployment conditions.
FAQs
Yes. Loki is open source under AGPL-3.0-only, and self-hosting costs only the infrastructure and staff time to run it. Grafana Cloud Logs has a free tier with 50 GB of log ingestion per month and 14-day retention.
Loki can search the full text of every line with |=, |~, and pattern filters, but it does not index that text. Each search scans the chunks of every stream your selector matches, so full-text queries are fast only when labels and the time range narrow the scan.
Use Grafana Alloy. Promtail reached end of life on March 2, 2026, and receives no updates, and alloy convert --source-format=promtail converts an existing Promtail configuration.
Yes, through its native OTLP HTTP endpoint, which requires the TSDB index, schema v13, and structured metadata enabled. Loki maps a default set of resource attributes to index labels and stores the rest as structured metadata, and you can change that mapping with limits_config.otlp_config.
Loki supports S3 and S3-compatible stores, Google Cloud Storage, Azure Blob Storage, IBM COS, Alibaba OSS, Baidu BOS, OpenStack Swift, and the local filesystem. Use the filesystem only for testing, since it is unreplicated, and use TSDB with schema v13 as the index for new installs.
More than 15 label names per stream hits Loki’s default limit, and Grafana advises staying under that with as few labels as possible. The count of values matters more than the count of names: keep each label bounded, ideally to tens of values, keep total streams under about 80,000 for large tenants, and never use unbounded values such as user IDs or request IDs as labels.





