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

## Executive Summary (TL;DR)
Prometheus v2.38.0. Source highlight: [FEATURE]: Web: Add a `/api/v1/format_query` HTTP API endpoint that allows pretty-formatting PromQL expressions. #11036 #10544 #11005

## New Features
- [FEATURE]: Web: Add a `/api/v1/format_query` HTTP API endpoint that allows pretty-formatting PromQL expressions. #11036 #10544 #11005
- [FEATURE]: UI: Add support for formatting PromQL expressions in the UI. #11039
- [FEATURE]: DNS SD: Support MX records for discovering targets. #10099
- [FEATURE]: Templates: Add `toTime()` template function that allows converting sample timestamps to Go `time.Time` values. #10993
- [ENHANCEMENT]: Kubernetes SD: Add `__meta_kubernetes_service_port_number` meta label indicating the service port number. #11002 #11053
- [ENHANCEMENT]: Kubernetes SD: Add `__meta_kubernetes_pod_container_image` meta label indicating the container image. #11034 #11146

## Improvements
- [ENHANCEMENT]: PromQL: When a query panics, also log the query itself alongside the panic message. #10995
- [ENHANCEMENT]: UI: Tweak colors in the dark theme to improve the contrast ratio. #11068
- [ENHANCEMENT]: Web: Speed up calls to `/api/v1/rules` by avoiding locks and using atomic types instead. #10858

## Bug Fixes
- [BUGFIX]: TSDB: In the WAL watcher metrics, expose the `type="exemplar"` label instead of `type="unknown"` for exemplar records. #11008
- [BUGFIX]: TSDB: Fix race condition around allocating series IDs during chunk snapshot loading. #11099
