# Prometheus v2.31.0 - Release & Upgrade Intelligence
- **Product:** Prometheus (https://prometheus.io)
- **Version:** v2.31.0
- **Released:** Nov 02, 2021
- **Impact Score:** 5/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/prometheus/updates/v2.31.0/

## Executive Summary (TL;DR)
Prometheus v2.31.0. Source highlight: [CHANGE] UI: Remove standard PromQL editor in favour of the codemirror-based editor. #9452

## New Features
- [FEATURE] PromQL: Add trigonometric functions and `atan2` binary operator. #9239 #9248 #9515
- [FEATURE] Remote: Add support for exemplar in the remote write receiver endpoint. #9319 #9414
- [FEATURE] SD: Add PuppetDB service discovery. #8883
- [FEATURE] SD: Add Uyuni service discovery. #8190
- [FEATURE] Web: Add support for security-related HTTP headers. #9546
- [ENHANCEMENT] Azure SD: Add `proxy_url`, `follow_redirects`, `tls_config`. #9267

## Improvements
- [ENHANCEMENT] Config: Print human-readable sizes with unit instead of raw numbers. #9361
- [ENHANCEMENT] HTTP: Re-enable HTTP/2. #9398
- [ENHANCEMENT] Kubernetes SD: Warn user if number of endpoints exceeds limit. #9467
- [ENHANCEMENT] PromQL: Several optimizations. #9365 #9360 #9362 #9552
- [ENHANCEMENT] PromQL: Make aggregations deterministic in instant queries. #9459
- [ENHANCEMENT] UI: Debounce timerange setting changes. #9359

## Bug Fixes
- [BUGFIX] Backfill: Apply rule labels after query labels. #9421
- [BUGFIX] Scrape: Resolve conflicts between multiple exported label prefixes. #9479 #9518
- [BUGFIX] Scrape: Restart scrape loops when `__scrape_interval__` is changed. #9551
- [BUGFIX] TSDB: Fix memory leak in samples deletion. #9151
- [BUGFIX] UI: Use consistent margin-bottom for all alert kinds. #9318
