Grafana Guide: Rows, Tabs, Layouts, Annotations and Links

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

Checked on 2026-11-11 against Grafana 13.3.x.

What you build

You take the dashboard Bookshelf (guides) and give it structure. You group its panels into a row called Traffic, try a tab, change the layout of the grid, add a rule that can show or hide a panel, mark failures on the chart with an annotation query and with an annotation you add by hand, and add a link to the dashboard and a link to the panel that open the logs of the Bookshelf service.

The finished dashboard Bookshelf (guides) in view mode: a row called Traffic holds the request rate panel, which shows a vertical annotation line for the manual annotation Failure test

Before you start

  • Start the Grafana profile of the hands-on lab and wait about a minute:

    cd lab
    docker compose --profile grafana up -d
  • Open http://localhost:3000, sign in as admin with the password admin, and click Skip when Grafana 13.3 asks you to update the default password.

  • Do the previous guide, Variables, filters and repeats, or at least Create a dashboard and the first panel, which creates the dashboard Bookshelf (guides) in the folder Guides. If the dashboard already has more panels from the guides in between, the steps work the same; you only need two panels.

  • The data source Prometheus is provisioned by the lab and the load generator sends traffic in its default mode, which gives the request rate chart something to draw.

  • The guide was checked on Grafana Enterprise 13.3.0 (the free image, no licence key). Editing dashboards needs the Editor or Admin role of the organization; admin has it.

  • A few controls (the row and tab headers, the rule of Show / hide rules, the forms of an annotation query, of a link and of a panel link, and the annotation popover) were not opened when the guide was checked. The steps name them without describing their exact layout, and the figures draw them in a simplified way. Follow the labels of your screen.

  • The figures are drawings of the Grafana 13.3 user interface, not screenshots, so small details can differ from your screen. A highlighted box with a number marks the control of the step with the same number.

Steps

The work happens in the edit mode of the dashboard, with the Add pane, the Dashboard pane and the Panel pane in the right sidebar. The guide Create a dashboard and the first panel shows the map of this screen; the steps below point to the regions they use.

Open the dashboard in edit mode

  1. In the left navigation, click Dashboards → Guides → Bookshelf (guides).

  2. Click Edit at the right of the toolbar.

    Dashboard Bookshelf (guides) in view mode with the navigation docked: callout 1 marks the Dashboards item of the navigation and callout 2 marks the Edit button of the toolbar
  3. Click Add at the left of the toolbar. The Add pane opens in the right sidebar.

  4. The next steps need two panels. If the dashboard has only one, click the Panel tile ("Drag or click to add a panel") of the Add pane; Grafana adds a second, empty panel called New panel, which is all you need.

    Dashboard in edit mode with one panel: callout 3 marks the Add button at the left of the toolbar and callout 4 marks the Panel tile of the Add pane in the right sidebar

Group panels in a row and a tab

  1. Click Add again to open the Add pane.

  2. Under Group layouts, click Add row.

    Dashboard in edit mode with two panels, the first with the request rate and the second called New panel: callout 5 marks the Add button of the toolbar and callout 6 marks Add row under Group layouts in the Add pane
  3. Select the new row and type Traffic as its title in the sidebar. The row header shows the title, and a click on its chevron collapses the panels under it.

    Dashboard in edit mode with a new row above the two panels: the row header carries the title Traffic, marked by callout 7
  4. Click Add once more to open the Add pane.

  5. Under Group layouts, click Add tab. Tabs group panels as rows do, but show one group at a time. Give the tab a title in the sidebar, as you did for the row.

    Dashboard in edit mode with the row Traffic and its two panels: callout 8 marks the Add button of the toolbar and callout 9 marks Add tab under Group layouts in the Add pane

Choose the layout of the grid

  1. In the icon strip of the right sidebar, click Options. The Dashboard pane opens: View all settings, Title, Description, Layout and the collapsible sections Filters, Variables, Annotations and Links.

  2. Under Layout, click Custom. In the custom grid you place and resize each panel freely by dragging; try moving a panel and then drag it back.

    Dashboard in edit mode with the Dashboard pane of the Options icon open in the right sidebar: callout 10 marks the Options icon of the icon strip and callout 11 marks Custom in the Layout switch, which now has Auto selected
  3. Click Auto to go back to the layout that lets Grafana arrange the panels.

  4. Type 2 in Max columns. The panels now share rows of at most two columns, so on a narrow canvas they stack one under the other.

    Dashboard pane in the right sidebar with the Layout switch on Auto (callout 12) and the field Max columns holding 2 (callout 13); the two panels of the canvas now share one row

Show or hide a panel with a rule

  1. Click the panel New panel to select it. The Panel pane replaces the Dashboard pane in the sidebar.

  2. In the Panel pane, open the section Show / hide rules. It holds Panel visibility with the choices Show and Hide.

  3. Click Add rule to see how a rule is built; the rule decides when the panel is shown or hidden, for example by the value of a variable. Do not keep a rule that hides the panel: leave Panel visibility on Show and remove the rule again, or set it so that the panel stays visible.

    Dashboard in edit mode with the second panel selected, marked by callout 14, and the Panel pane in the right sidebar: callout 15 marks the Show / hide rules section, which is open and shows Panel visibility with Show and Hide, and callout 16 marks the Add rule button

An annotation query draws a mark on the chart every time a query returns a value, so the dashboard marks the failures for you.

  1. Click Add to open the Add pane.

  2. Under Dashboard controls, click Annotation query.

  3. In the form that opens, give the query the name Failure marks, choose the data source Prometheus and type this expression, which returns a value whenever the Bookshelf service answers with a 5xx status. Confirm the form with its own button:

    sum(rate(http_server_requests_seconds_count{application="bookshelf",status=~"5.."}[1m])) > 0
  4. Open the Add pane again and, under Dashboard controls, click Link.

    Dashboard in edit mode with the Add pane open: callout 17 marks the Add button of the toolbar, callout 18 marks Annotation query and callout 20 marks Link, both under Dashboard controls in the Add pane
  5. In the form of the link, give it the title Bookshelf logs and the URL http://localhost:3000/a/grafana-lokiexplore-app/explore, which is the Logs drilldown of the lab. Confirm the form.

  6. In the Dashboard pane (the Options icon), open the section Annotations. It lists the groups Above dashboard, Controls menu and Hidden; the built-in Annotations & Alerts is under Hidden, and your Failure marks is listed with the others.

  7. Open the section Links. It lists Bookshelf logs.

    Dashboard pane of the Options sidebar with two sections open: Annotations, marked by callout 22, lists the new query Failure marks above the dashboard and the built-in Annotations & Alerts under Hidden, and Links, marked by callout 23, lists the link Bookshelf logs

A panel link sits in the menu of one panel and opens another page, as the dashboard link does for the whole dashboard.

  1. Click the panel Requests per second by status to select it.

  2. Click Edit visualization in the Panel pane.

  3. In the options pane of the panel editor, open the category Panel links.

  4. Add a link with the title Explore the Bookshelf and the URL http://localhost:3000/explore, and confirm it.

  5. Click Save in the header of the editor. The Save dashboard drawer opens.

    Panel editor of the dashboard with the Time series options pane: callout 26 marks the Panel links category of the options pane and callout 28 marks the Save button of the editor header

Save the dashboard and leave edit mode

  1. In Message, type Rows, layout, annotation query and links. The field is optional; it labels this version in the version history, which the next guide uses.

  2. Click Save.

    Save dashboard drawer of the existing dashboard: the Message field holds a short note about the changes (callout 29) and the Save button is marked by callout 30
  3. Click Back to return to the dashboard.

  4. Click Exit edit.

    Dashboard Bookshelf (guides) in edit mode with the row Traffic and the two panels, and the Exit edit button of the toolbar marked by callout 32
  5. If Grafana 13.3.0 shows the dialog Unsaved changes ("Do you want to save your changes?"), which it did even right after a save, click Save.

  6. In the Save dashboard drawer that opens, click Save again. Edit mode closes.

Add an annotation by hand

  1. In view mode, hold Ctrl (Cmd on macOS) and click the chart of Requests per second by status at the moment you want to mark. A small form opens.

  2. In Description, type Failure test.

  3. Click Save in the form. A vertical line with a marker appears on the chart.

    Dashboard in view mode with a small form open on the chart: callout 35 marks the point of the chart that was clicked with Ctrl held, the Description field holds Failure test (callout 36) and the Save button of the form is marked by callout 37

Check the result

The dashboard must show the row Traffic above the panels, and the chart must show the vertical line of the annotation Failure test. Hover over the marker at the bottom of the line to read its text.

To see the annotation query work, force errors, wait about a minute and press Refresh; marks of the query Failure marks appear on the chart while the status 500 is answered:

curl -X POST localhost:8090/mode/failing

Restore normal traffic afterwards:

curl -X POST localhost:8090/mode/normal

Open the menu of the panel to find the panel link Explore the Bookshelf. The link Bookshelf logs is shown with the dashboard controls under the toolbar.

Variations

  • Use the same Add pane to add an annotation query for the logs: choose the data source Loki instead of Prometheus and a log query such as {application="bookshelf"} |= "ERROR".

  • Put the annotation in a region by selecting a time range on the chart with the same Ctrl (Cmd) gesture, as the reference page on annotations describes.

  • Make a link context-aware by adding a variable to its URL, as the guide on variables shows.

What can go wrong

Symptom Cause Fix

Add row or Add tab is not offered

The Add pane is not open, or the dashboard is not in edit mode.

Click Edit, then Add, and look under Group layouts.

The chart shows no mark for Failure marks

The load generator is in its normal mode, so there is no 5xx to mark, or the time range does not include the failure.

Send curl -X POST localhost:8090/mode/failing, wait a minute and click Refresh.

The Ctrl click opens a browser menu or does nothing

The dashboard is still in edit mode, or the modifier key of your system is another one.

Click Exit edit first and use Cmd on macOS. The reference page on annotations describes other ways to add one.

A panel disappeared after a rule was added

The rule hides the panel when its condition is true.

Open Show / hide rules of the panel and remove the rule, or set Panel visibility to Show.

Clean up

Keep the dashboard: the next guides extend it. Rows, layouts, annotations and links are saved in the dashboard. To go back to the previous layout, restore the earlier version in the version history of the dashboard, which the guide on versions shows, and to remove the manual annotation, open it on the chart and delete it. To remove everything else the lab stores, stop the profile with docker compose --profile grafana down -v, which also deletes the volumes.

Where to go next