# Prometheus v2.49.0 - Release & Upgrade Intelligence
- **Product:** Prometheus (https://prometheus.io)
- **Version:** v2.49.0
- **Released:** Jan 15, 2024
- **Impact Score:** 8/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/prometheus/updates/v2.49.0/

## Executive Summary (TL;DR)
Prometheus v2.49.0 introduces experimental PromQL functions behind a feature flag, heatmap visualizations in the UI, and enhanced control over scrape protocols and compression. This release also delivers notable performance optimizations across TSDB and scraping components alongside various bug fixes.

## New Features
- Promtool: Add `--run` flag to `promtool test rules` command (#12206)
- SD: Add support for `NS` records to DNS SD (#13219)
- UI: Add heatmap visualization setting in the Graph tab for histograms (#13096 #13371)
- Scraping: Add `scrape_config.enable_compression` to disable gzip compression when scraping targets (#13166)
- PromQL: Add `promql-experimental-functions` feature flag containing `mad_over_time`, `sort_by_label`, and `sort_by_label_desc` (#13103 #13059 #11299)
- SD: Add `__meta_linode_gpus` label to Linode SD (#13097)
- API: Add `exclude_alerts` query parameter to `/api/v1/rules` to return only recording rules (#12999)
- TSDB: Expose `--storage.tsdb.retention.time` flag value as the `prometheus_tsdb_retention_limit_seconds` metric (#12986)
- Scraping: Add ability to specify priority of scrape protocols via `global.scrape_protocols` and `scrape_config.scrape_protocols` (#12738)
- Support file-based configuration of basic auth username in http client config (#13003)

## Improvements
- Scraping: Automated handling of scraping histograms violating `scrape_config.native_histogram_bucket_limit` (#13129)
- Scraping: Optimized memory allocations when scraping (#12992)
- SD: Added cache for Azure SD to avoid rate-limits (#12622)
- TSDB: Various improvements to OOO exemplar scraping, including ingestion with the same timestamp but different labels (#13021)
- API: Optimize `/api/v1/labels` and `/api/v1/label/<label_name>/values` when 1 set of matchers are used (#12888)
- TSDB: Various optimizations for TSDB block index, head mmap chunks, and WAL reducing latency and memory allocations (#12997 #13058 #13056 #13040)
- PromQL: Optimize memory allocations and latency when querying float histograms (#12954)
- Rules: Instrument TraceID in log lines for rule evaluations (#13034)
- PromQL: Optimize memory allocations in query_range calls (#13043)
- Promtool: unittest interval now defaults to evaluation_intervals when not set (#12729)

## Bug Fixes
- SD: Fixed Azure SD public IP reporting (#13241)
- API: Fix inaccuracies in posting cardinality statistics (#12653)
- PromQL: Fix inaccuracies of `histogram_quantile` with classic histograms (#13153)
- TSDB: Fix rare fails or inaccurate queries with OOO samples (#13115)
- TSDB: Fix rare panics on append commit when exemplars are used (#13092)
- TSDB: Fix exemplar WAL storage, allowing remote write to send/receive samples before exemplars (#13113)
- Mixins: Fix `url` filter on remote write dashboards (#10721)
- PromQL/TSDB: Various fixes to float histogram operations (#12891 #12977 #12609 #13190 #13189 #13191 #13201 #13212 #13208)
- Promtool: Fix int32 overflow issues for 32-bit architectures (#12978)
- SD: Fix Azure VM Scale Set NIC issue (#13283)
