grafana / grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
https://grafana.com
GNU Affero General Public License v3.0
65.27k stars 12.18k forks source link

Stat panel: Title bar shown despite empty if query options use relative time #96104

Open clompsy opened 2 weeks ago

clompsy commented 2 weeks ago

What happened?

Coming from 11.2.2 to 11.3.0 the "Stat" panel changed it's look for us which seems to be a bug.

We have many small "Stat" panels of small size that have no title to save space for the sparkline ("area" graph) inside the panel and some of them don't use the time interval of the dashboard but override it with an own relative time to have the sparkline only show a specific timeframe. In 11.2.2. this looked as follows: Image After upgrade to 11.3.0 the title bar is showing despite having no content (no title set and the "Hide time info" turned on): Image

When editing this panel, if I add a blank to the title and remove it again, the title bar suddenly vanishes, but upon dashboard reload the title bar shows again.

Here's a dashboard showing this behavior: SinglestatTitle-1731070781951.json

What did you expect to happen?

Title bar shall not be showing if no title is entered.

Did this work before?

Yes in 11.2.2

How do we reproduce it?

I attached a plain dashboard showing the issue. Edit the panel, add a space to the title and remove it again, the title bar disappears and the panel shows correctly. Reload the dashboard, title bar is shown again.

Is the bug inside a dashboard panel?

No response

Environment (with versions)?

Grafana: 11.3.0 OS: Windows (client-side) Browser: Firefox 128.4.0esr, Chrome 130.0.6723.117

Grafana platform?

I don't know

Datasource(s)?

any

clompsy commented 2 weeks ago

Probably fixed with https://github.com/grafana/grafana/pull/95814