<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog on Cortex</title><link>/blog/</link><description>Recent content in Blog on Cortex</description><generator>Hugo</generator><language>en</language><atom:link href="/blog/index.xml" rel="self" type="application/rss+xml"/><item><title>Cortex Security Audit Results</title><link>/blog/2026/07/07/cortex-security-audit-results/</link><pubDate>Tue, 07 Jul 2026 00:00:00 +0000</pubDate><guid>/blog/2026/07/07/cortex-security-audit-results/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The Cortex maintainer team is publishing the results of a third-party security audit of the Cortex codebase, completed on April 20, 2026.&lt;/p&gt;
&lt;p&gt;Cortex is a horizontally scalable, multi-tenant, long-term storage backend for Prometheus. Multi-tenancy is enforced at the application layer via the &lt;code&gt;X-Scope-OrgID&lt;/code&gt; header — every read and write path uses this tenant identifier to scope access to time-series data, rules, and alertmanager configurations. The integrity of this boundary is a critical security property.&lt;/p&gt;</description></item><item><title>Introducing READONLY State: Gradual and Safe Ingester Scaling</title><link>/blog/2025/10/17/introducing-readonly-state-gradual-and-safe-ingester-scaling/</link><pubDate>Fri, 17 Oct 2025 00:00:00 +0000</pubDate><guid>/blog/2025/10/17/introducing-readonly-state-gradual-and-safe-ingester-scaling/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Scaling down ingesters in Cortex has traditionally been a complex and risky operation. The conventional approach required setting &lt;code&gt;querier.query-store-after=0s&lt;/code&gt;, which forces all queries to hit storage directly, significantly impacting performance. With Cortex 1.19.0, we introduced a new &lt;strong&gt;READONLY state&lt;/strong&gt; for ingesters that changes how you can safely scale down your Cortex clusters.&lt;/p&gt;
&lt;h2 id="why-traditional-scaling-falls-short"&gt;Why Traditional Scaling Falls Short&lt;/h2&gt;
&lt;p&gt;The legacy approach to ingester scaling had several issues:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Performance Impact&lt;/strong&gt;: Setting &lt;code&gt;querier.query-store-after=0s&lt;/code&gt; forces all queries to bypass ingesters entirely, increasing query latency and storage load.&lt;/p&gt;</description></item><item><title>Query Priority in Cortex</title><link>/blog/2025/09/08/query-priority-in-cortex/</link><pubDate>Mon, 08 Sep 2025 00:00:00 +0000</pubDate><guid>/blog/2025/09/08/query-priority-in-cortex/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;In high-scale monitoring environments, not all queries are created equal. Some queries power critical dashboards that need sub-second response times, while others are exploratory analytics that can tolerate delays. However, the queries from a tenant is handled FIFO (first-in-first-out), which could lead to a noisy-neighbor problem within the user.&lt;/p&gt;
&lt;p&gt;&lt;img src="/images/blog/2025/query-fifo.png" alt="Query FIFO"&gt;&lt;/p&gt;
&lt;p&gt;Cortex&amp;rsquo;s query priority feature addresses this challenge by allowing operators to reserve querier resources for high-priority queries.&lt;/p&gt;
&lt;h2 id="what-is-query-priority"&gt;What is Query Priority?&lt;/h2&gt;
&lt;p&gt;Query priority in Cortex enables you to classify queries based on various attributes and allocate dedicated querier resources to different priority levels. The system works by:&lt;/p&gt;</description></item><item><title>Efficient Query Parallelism in Cortex with Dynamic Query Splitting</title><link>/blog/2025/08/12/efficient-query-parallelism-in-cortex-with-dynamic-query-splitting/</link><pubDate>Tue, 12 Aug 2025 00:00:00 +0000</pubDate><guid>/blog/2025/08/12/efficient-query-parallelism-in-cortex-with-dynamic-query-splitting/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Cortex traditionally relied on &lt;strong&gt;static query splitting&lt;/strong&gt; and &lt;strong&gt;static vertical sharding&lt;/strong&gt; to optimize the execution of long-range PromQL queries. Static query splitting divides a query into fixed time intervals, while vertical sharding—when applicable—splits the query across subsets of time series. These techniques offered improved parallelism and reduced query latency but were limited by their one-size-fits-all approach. They did not account for differences in query range, lookback behavior, and cardinality—leading to inefficiencies like over-sharding, redundant data fetches, and storage pressure in large or complex queries.&lt;/p&gt;</description></item><item><title>Block the Blast: How Query Rejection Protects Your Cortex Cluster</title><link>/blog/2025/08/04/block-the-blast-how-query-rejection-protects-your-cortex-cluster/</link><pubDate>Mon, 04 Aug 2025 00:00:00 +0000</pubDate><guid>/blog/2025/08/04/block-the-blast-how-query-rejection-protects-your-cortex-cluster/</guid><description>&lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;Although Cortex includes various safeguards to protect against overload, they can’t prevent every failure scenario. In some environments, a small set of seemingly harmless-looking dashboard queries have repeatedly slipped just under the limits yet still OOM-killed the querier pods. Built-in protections weren’t enough, and the only available option was to throttle all incoming traffic. These queries often came from a specific dashboard or followed a predictable pattern. There was no way to block just those without affecting everything else. This inspired the introduction of query rejection, a last-resort safety net for operators running multi-tenant Cortex clusters.&lt;/p&gt;</description></item><item><title>Optimizing PromQL queries: A deep dive</title><link>/blog/2025/04/29/optimizing-promql-queries-a-deep-dive/</link><pubDate>Tue, 29 Apr 2025 00:00:00 +0000</pubDate><guid>/blog/2025/04/29/optimizing-promql-queries-a-deep-dive/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;This guide explains how Cortex evaluates PromQL queries, details how time series data is stored and retrieved, and offers strategies to write performant queries — particularly in high-cardinality environments.&lt;/p&gt;
&lt;p&gt;Note: If you are new to PromQL, it is recommended to start with the &lt;a href="https://prometheus.io/docs/prometheus/latest/querying/basics/"&gt;Querying basics documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="prometheus-concepts"&gt;Prometheus Concepts&lt;/h2&gt;
&lt;h3 id="data-model"&gt;Data Model&lt;/h3&gt;
&lt;p&gt;Prometheus employs a straightforward data model:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Each time series is uniquely identified by a metric name and a set of label-value pairs.&lt;/li&gt;
&lt;li&gt;Each sample includes:
&lt;ul&gt;
&lt;li&gt;A millisecond precision timestamp&lt;/li&gt;
&lt;li&gt;A 64 bit floating point value.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="label-matchers"&gt;Label Matchers&lt;/h3&gt;
&lt;p&gt;Label matchers define the selection criteria for time series within the TSDB. Consider the following PromQL expression:&lt;/p&gt;</description></item><item><title>Introducing the Cortex Blog: Sharing Our Journey</title><link>/blog/2025/04/26/introducing-the-cortex-blog-sharing-our-journey/</link><pubDate>Sat, 26 Apr 2025 00:00:00 +0000</pubDate><guid>/blog/2025/04/26/introducing-the-cortex-blog-sharing-our-journey/</guid><description>&lt;p&gt;Welcome to the official Cortex blog!&lt;/p&gt;
&lt;p&gt;We’re kicking things off here to share updates, best practices,
technical deep-dives, and community highlights around everything Cortex.
Whether you&amp;rsquo;re operating a Cortex cluster, integrating it into your observability platform,
or just starting to explore scalable time-series databases — you&amp;rsquo;re in the right place.&lt;/p&gt;
&lt;p&gt;In the coming weeks, you can expect posts on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Real-world Cortex deployment strategies and lessons learned&lt;/li&gt;
&lt;li&gt;Tips for running Cortex efficiently at scale&lt;/li&gt;
&lt;li&gt;Deep dives into key Cortex concepts like blocks storage, ruler sharding, and query federation&lt;/li&gt;
&lt;li&gt;Guides to help new contributors get involved with the project&lt;/li&gt;
&lt;li&gt;Interviews with maintainers and users from across the community&lt;/li&gt;
&lt;li&gt;Roadmap insights and upcoming features we&amp;rsquo;re excited about&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Cortex has grown a lot thanks to a vibrant community of operators, contributors, and partners.
This blog will be another space for us to connect, learn from each other, and push the project even further.&lt;/p&gt;</description></item></channel></rss>