npm / @grafana/prometheus
@grafana/prometheus
What changed in @grafana/prometheus 13, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-26.
3 breaking2 new APIs and options1 performance5 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@grafana/prometheus 1315 changes
Breaking changes 3
Metric and label discovery now uses the Search API.
The package now requires @grafana/runtime >=11.6.0.
POST-friendly metadata endpoints default to POST when no HTTP method is configured, matching the config editor's default.
New APIs and options 2
PromQL anchored and smoothed range selectors are supported in the query builder, code editor, scope filtering, and label suggestions.
A Search API toggle is available in the configuration editor.
Performance 1
Search API ranking is improved and streamed response memory is bounded.
Behavior and default changes 5
Loads metric combobox names in alphabetical order without metadata.
Shows metric names as each search batch arrives.
Streams metric names from the Search API.
Caps search results and indicates when the list is incomplete.
Suggestions are shown as batches arrive.
Fixes and other changes 4
Preserves label values when switching between Prometheus Builder and Code modes.
The PromQL query editor recognizes native-histogram trim operators.
The config editor no longer crashes when customQueryParameters is provisioned as a non-string value.
Discovery falls back to standard Prometheus discovery when the Search API is unavailable.