Prometheus v3.1.0stable Released Jan 02, 2025
Impact Score: 8/10

Prometheus: 3.1.0 / 2025-01-02

Source available - automated, not human-reviewed

Component: prometheus · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-25.

Automated impact estimate - compatibility not verified
📄 .MD
⚡ Executive Summary (TL;DR)

Prometheus v3.1.0 introduces significant performance optimizations for TSDB and PromQL, alongside critical security updates and breaking API schema adjustments. Users must update integrations consuming the rules API due to a breaking field name change in the response payload.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Engineers integrating with the Prometheus rules API must update parsers to accommodate the renaming of 'groupNextToken' from omitempty to a required field.

📊 Product & Engineering Leads

This release prioritizes system stability and observability depth, enabling better rule evaluation tracking and improved support for native histograms.

⚙️ DevOps & Security

Upgrading to v3.1.0 addresses a critical security vulnerability (CVE-2024-45337) and provides substantial performance improvements in storage compaction and metric querying.

✨ New Features & Capabilities (3)

  • New metric rule_group_last_rule_duration_sum_seconds for monitoring rule execution performance
  • Export of go_sync_mutex_wait_total_seconds_total metric for enhanced observability
  • DNS resolver option for remote-write to support random IP selection

⚡ Performance & Enhancements (4)

  • Significant TSDB performance optimizations including reduced memory allocations and improved symbol caching
  • Paginated rule groups with infinite scroll in the UI
  • Optimized PromQL regex matching and string manipulation
  • Improved calculation of space used by labels

🔧 Bug Fixes & Patches (4)

  • Fixed data corruption issues in experimental native histograms
  • Resolved various PromQL bugs concerning histogram aggregations and quoting
  • Fixed potential segfault at exit and nil panics in scrape loop
  • Addressed CVE-2024-45337 via golang.org/x/crypto upgrade

❓ Frequently Asked Questions

Does Prometheus v3.1.0 contain breaking changes?

Yes. The rules API field 'groupNextToken' has been renamed, which is a breaking change for external clients expecting the previous schema.

What is the primary highlight of v3.1.0?

The release is heavily focused on stability and performance, delivering broad optimizations to TSDB efficiency, PromQL histogram handling, and a critical security patch.

How should teams prepare to upgrade to v3.1.0?

Teams should audit custom API clients for dependencies on the rules endpoint, review current memory usage metrics, and ensure testing environments validate histogram-based alerts.

📄 View Raw Release Notes (Original Developer Log)
## What's Changed * [SECURITY] upgrade golang.org/x/crypto to address reported CVE-2024-45337. #15691 * [CHANGE] Notifier: Increment prometheus_notifications_errors_total by the number of affected alerts rather than per batch. #15428 * [CHANGE] API: list rules field "groupNextToken:omitempty" renamed to "groupNextToken". #15400 * [ENHANCEMENT] OTLP translate: keep identifying attributes in target_info. #15448 * [ENHANCEMENT] Paginate rule groups, add infinite scroll to rules within groups. #15677 * [ENHANCEMENT] TSDB: Improve calculation of space used by labels. #13880 * [ENHANCEMENT] Rules: new metric rule_group_last_rule_duration_sum_seconds. #15672 * [ENHANCEMENT] Observability: Export 'go_sync_mutex_wait_total_seconds_total' metric. #15339 * [ENHANCEMEN] Remote-Write: optionally use a DNS resolver that picks a random IP. #15329 * [PERF] Optimize `l=~".+"` matcher. #15474, #15684 * [PERF] TSDB: Cache all symbols for compaction . #15455 * [PERF] TSDB: MemPostings: keep a map of label values slices. #15426 * [PERF] Remote-Write: Remove interning hook. #15456 * [PERF] Scrape: optimize string manipulation for experimental native histograms with custom buckets. #15453 * [PERF] TSDB: reduce memory allocations. #15465, #15427 * [PERF] Storage: Implement limit in mergeGenericQuerier. #14489 * [PERF] TSDB: Optimize inverse matching. #14144 * [PERF] Regex: use stack memory for lowercase copy of string. #15210 * [PERF] TSDB: When deleting from postings index, pause to unlock and let readers read. #15242 * [BUGFIX] Main: Avoid possible segfault at exit. (#15724) * [BUGFIX] Rules: Do not run rules concurrently if uncertain about dependencies. #15560 * [BUGFIX] PromQL: Adds test for `absent`, `absent_over_time` and `deriv` func with histograms. #15667 * [BUGFIX] PromQL: Fix various bugs related to quoting UTF-8 characters. #15531 * [BUGFIX] Scrape: fix nil panic after scrape loop reload. #15563 * [BUGFIX] Remote-write: fix panic on repeated log message. #15562 * [BUGFIX] Scrape: reload would ignore always_scrape_classic_histograms and convert_classic_histograms_to_nhcb configs. #15489 * [BUGFIX] TSDB: fix data corruption in experimental native histograms. #15482 * [BUGFIX] PromQL: Ignore histograms in all time related functions. #15479 * [BUGFIX] OTLP receiver: Convert metric metadata. #15416 * [BUGFIX] PromQL: Fix `resets` function for histograms. #15527 * [BUGFIX] PromQL: Fix behaviour of `changes()` for mix of histograms and floats. #15469 * [BUGFIX] PromQL: Fix behaviour of some aggregations with histograms. #15432 * [BUGFIX] allow quoted exemplar keys in openmetrics text format. #15260 * [BUGFIX] TSDB: fixes for rare conditions when loading write-behind-log (WBL). #15380 * [BUGFIX] `round()` function did not remove `__name__` label. #15250 * [BUGFIX] Promtool: analyze block shows metric name with 0 cardinality. #15438 * [BUGFIX] PromQL: Fix `count_values` for histograms. #15422 * [BUGFIX] PromQL: fix issues with comparison binary operations with `bool` modifier and native histograms. #15413 * [BUGFIX] PromQL: fix incorrect "native histogram ignored in aggregation" annotations. #15414 * [BUGFIX] PromQL: Corrects the behaviour of some operator and aggregators with Native Histograms. #15245 * [BUGFIX] TSDB: Always return unknown hint for first sample in non-gauge histogram chunk. #15343 * [BUGFIX] PromQL: Clamp functions: Ignore any points with native histograms. #15169 * [BUGFIX] TSDB: Fix race on stale values in headAppender. #15322 * [BUGFIX] UI: Fix selector / series formatting for empty metric names. #15340 * [BUGFIX] OTLP receiver: Allow colons in non-standard units. #15710