Changelog: Updates in Grafana 9.5.0

9.5.0 (2023-04-04)

Features and enhancements

Bug fixes

  • Plugins: Fix width for README pages with tables. #66872, @andresmgot
  • Elasticsearch: Handle multiple annotation structures. #66762, @gabor
  • Alerting: Fix share URL for Prometheus rules on subpath. #66752, @gillesdemey
  • Alerting: Fix DatasourceUID and RefID missing for DatasourceNoData alerts. #66733, @grobinson-grafana
  • Navigation: Redirect to root page when switching organization. #66655, @ashharrison90
  • Trace View: Update the queryType to traceql for checking if same trace when clicking span link. #66645, @ericmustin
  • Dashboards: Fix broken internal data links. #66567, @ifrost
  • Google Cloud Monitoring: Fix project variable. #66524, @asimpson
  • InfluxDB: Fix querying with hardcoded retention policy. #66466, @itsmylife
  • Alerting: Hide mute timing actions when dealing with vanilla prometheus. #66457, @gillesdemey
  • Alerting: Fix creating a recording rule when having multiple datasources. #66415, @VikaCep
  • AccessControl: Allow editors to access GET /api/datasources. #66343, @mgyongyosi
  • Table Panel: Fix panel migration for options cell type. #66305, @ryantxu
  • Navigation: Scrolled hamburger menu links now navigate correctly in Safari. #66261, @ashharrison90
  • Query Splitting: Fix for handling queries with no requestId. #66161, @domasx2
  • Cloudwatch: Pass refId from query for expression queries. #66147, @idastambuk
  • Alerting: Fix explore link in alert detail view. #66106, @gillesdemey
  • Plugins: Skip instrumenting plugin build info for core and bundled plugins. #66105, @wbrowne
  • Fix: DataLinks from data sources override user defined data link. #65996, @axelavargas
  • SQL Datasources: Fix variable throwing error if query returns no data. #65937, @mdvictor
  • Annotations: Ignore unique constraint violations for tags. #65935, @sakjur
  • PluginExtensions: Fixed issue with incorrect type being exposed when configuring an extension. #65910, @mckn
  • Annotation List: Fix panel not updating when variable is changed. #65899, @JoaoSilvaGrafana
  • Table: Fix migrations from old angular table for cell color modes . #65760, @torkelo
  • TablePanel: Fix table cells overflowing when there are multiple data links. #65711, @oscarkilhed
  • PieChart: Show long labels properly. #65699, @mdvictor
  • New Panel Header: Fix when clicking submenu item the parent menu item onClick get’s triggered . #65691, @axelavargas
  • TimeSeries: Don’t extend stepped interpolation to graph edges. #65657, @leeoniya
  • BrowseDashboards: Fix move to General folder not working. #65653, @joshhunt
  • CloudMonitoring: Add project selector for MQL editor[fix]. #65567, @alyssabull
  • Dashboards: Fix Mobile support dashboard issues on new iOS 16.3 . #65542, @axelavargas
  • Loki: Fix autocomplete situations with multiple escaped quotes. #65520, @svennergr
  • TimeSeries: Improve stacking direction heuristic. #65499, @leeoniya
  • CloudWatch: Fix cachedQueries insights not being updated for metric queries. #65495, @kevinwcyu
  • AzureMonitor: Fix Log Analytics portal links. #65482, @aangelisc
  • ErrorView: Better detection of no-data responses. #65477, @leeoniya
  • Phlare: Fix error when there are no profileTypes to send from backend. #65455, @aocenas
  • MegaMenu: Fixes mega menu showing scroll indicator when it shouldn’t. #65452, @torkelo
  • Alerting: Add alert instance labels to Loki log lines in addition to stream labels. #65403, @alexweav
  • Alerting: Add “backend” label to state history writes metrics. #65395, @alexweav
  • Plugins: Markdown fetch retry with lowercase. #65384, @wbrowne
  • API: Fix “Updated by” Column in dashboard versions table. #65351, @papagian
  • Alerting: Use displayNameFromDS if available in preview. #65342, @gillesdemey
  • HeatMap: Sort y buckets when all bucket names are numeric. #65322, @leeoniya
  • CloudWatch Logs: Fix running logs queries with expressions. #65306, @iwysiu
  • Library panels: Ensure pagination controls are always correctly displayed. #65283, @ashharrison90
  • Templating: Allow percent encoding of variable with custom all. #65266, @dprokop
  • Alerting: Paginate result previews. #65257, @gillesdemey
  • CloudWatch Logs: Fix to make log queries use a relative time if available. #65236, @kevinwcyu
  • Table: Fixes issue with pagination summary causing scrollbar . #65189, @torkelo
  • Dashboards: Evaluate provisioned dashboard titles in a backwards compatible way. #65184, @sakjur
  • Elasticsearch: Fix processing of response with multiple group by for alerting. #65165, @ivanahuckova
  • Explore: Make DataSourcePicker visible on small screens. #65149, @abdulhdr1
  • Alerting: Fix attachment of external labels to Loki state history log streams. #65140, @alexweav
  • Catalog: Show install error with incompatible version. #65059, @andresmgot
  • Tempo: Set default limit if none is provided for traceql queries. #65039, @domasx2
  • CloudWatch Logs: Revert “Queries in an expression should run synchronously (#64443)”. #65036, @fridgepoet
  • XYChart: Add all dataset columns in tooltip. #65027, @mdvictor
  • Alerting: Fix ambiguous handling of equals in labels when bucketing Loki state history streams. #65013, @alexweav
  • Alerting: Elide requests to Loki if nothing should be recorded. #65011, @alexweav
  • Table: Fixes table panel gauge alignment . #64994, @torkelo
  • Alerting: Use a completely isolated context for state history writes. #64989, @alexweav
  • SQL Datasources: Prevent Call Stack Overflows with Large Numbers of Values for Variable. #64937, @codeincarnate
  • TraceView: Don’t require preferredVisualisationType to render. #64920, @aocenas
  • SQLStore: Fix SQLite error propagation if query retries are disabled. #64904, @papagian
  • Alerting: Fix stats that display alert count when using unified alerting. #64852, @gotjosh
  • Database: Don’t sleep 10ms before every request. #64832, @bboreham
  • PublicDashboards: Query collapsed panels inside rows. #64779, @evictorero
  • Chore: Update Grafana to use Alertmanager v0.25.1-0.20230308154952-78fedf89728b. #64778, @yuri-tceretian
  • Alerting: Update scheduler to get updates only from database. #64635, @yuri-tceretian
  • Email: Mark HTML comments as “safe” in email templates. #64546, @gillesdemey
  • Alerting: Prometheus-compatible Alertmanager timings editor. #64526, @konrad147
  • Fix: Top table rendering and update docs. #64497, @joey-grafana
  • Utils: Reimplement util.GetRandomString to avoid modulo bias. #64481, @DanCech
  • Frontend: Fix broken links in /plugins when pathname has a trailing slash. #64348, @gassiss
  • Stat Panel: Fix issue with clipping text values. #64300, @JoaoSilvaGrafana
  • TablePanel: fix footer bug; no footer calculated values after “hidden” column override. #64269, @baldm0mma
  • InfluxDB: Fix sending retention policy with InfluxQL queries. #63820, @itsmylife
  • ErrorHandling: Fixes issues with bad error messages. #63775, @torkelo
  • NestedFolders: Fix nested folder deletion. #63572, @ying-jeanne
  • Geomap: Fix route layer zoom behavior. #63409, @drew08t
  • KVStore: Include database field in migration. #62790, @zoltanbedi
  • Plugins: Ensure proxy route bodies are valid JSON. #61771, @wbrowne
  • LDAP: Always synchronize Server Admin role through role sync if role sync is enabled. #58820, @IevaVasiljeva
  • Emails: Preserve HTML comments. (Enterprise)
  • Team sync: Fix apply query string instead of param. (Enterprise)

Breaking changes

default named retention policies won’t be used to query. Users who have a default named retention policy in their influxdb database, have to rename it to something else. Having default named retention policy is not breaking anything. We will make sure to use the actual default retention policy under the hood. To change the hardcoded retention policy in the dashboard.json, users must they select the right retention policy from dropdown and save the panel/dashboard. Issue #66466

Grafana Alerting rules with NoDataState configuration set to Alerting will now respect “For” duration. Issue #65574

Users who use LDAP role sync to only sync Viewer, Editor and Admin roles, but grant Grafana Server Admin role manually will not be able to do that anymore. After this change, LDAP role sync will override any manual changes to Grafana Server Admin role assignments. If grafana_admin is left unset in LDAP role mapping configuration, it will default to false. Issue #58820

Plugin development fixes & changes

Please note that there’s also already Grafana 9.5.1 out :slight_smile: