Grafana Guide: Thresholds, Value Mappings, Overrides and Data 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 add a table panel called Requests per second by route to the dashboard Bookshelf (guides) and then shape how its values look and behave with the field tools of the panel editor. The unit and the decimals format every rate, thresholds colour the cells orange from 2 and red from 4 requests per second, a value mapping shows the word Quiet for the routes with little traffic, one override turns the Value cells into coloured cells, and a second override turns each route name into a link that opens a detail dashboard or Explore.

Finished table panel Requests per second by route in view mode: the column uri lists the four routes as links, and the Value column is coloured red, orange and green by thresholds, shows rates with the unit req/s and the word Quiet for the routes with little traffic

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 earlier guides in this series, at least Create a dashboard and the first panel, which creates the dashboard Bookshelf (guides) in the folder Guides. The guide on Tables builds a similar panel with transformations, but it is not required.

  • The data source Prometheus is provisioned by the lab and is the default data source. The load generator runs in its default mode and gives the query traffic to draw.

  • The data link of the last phase opens the provisioned dashboard Bookshelf service health, which the lab loads for you.

  • 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.

  • 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

Grafana 13.3 has no separate All and Overrides tabs in the panel editor. The options pane of a visualization lists every category, one below the other, and the Show only overrides icon in its header narrows the list to the options that overrides set. The field tools of this guide live in the categories Standard options, Data links and actions, Value mappings and Thresholds, and in the Add field override button at the end of the pane.

The screen maps of the dashboard in edit mode and of the panel editor are in the guide Create a dashboard and the first panel; come back to them when a control is not where a figure shows it.

Add a table panel

  1. In the left navigation, click Dashboards, then open the folder Guides and the dashboard Bookshelf (guides).

  2. Click Edit.

    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 in the toolbar.

  4. In the Add pane of the right sidebar, click the Panel tile.

    Dashboard Bookshelf (guides) in edit mode with the Add pane of the right sidebar open: callout 3 marks the Add button of the toolbar and callout 4 marks the Panel tile of the Add pane
  5. In the Panel pane that replaces the Add pane, click Edit visualization.

    Dashboard in edit mode after the Panel tile was clicked: a new panel called New panel and the Panel pane of the sidebar with the Edit visualization button marked by callout 5
  6. At the bottom of the panel editor, check that Data source shows Prometheus. In query A, click Code in the Builder / Code switch.

    Panel editor with an empty New panel on the Queries tab and the Prometheus data source: callout 6 marks the Code option of the Builder and Code switch
  7. Click inside the query editor first, so that it has the focus, then type the query:

    sum by (uri) (rate(http_server_requests_seconds_count{application="bookshelf"}[1m]))
  8. Open the Options line of the query and set Format to Table.

  9. In the same line, set Type to Instant.

  10. Click Run queries.

    Panel editor in Code mode: the query that sums the request rate by uri is typed in the editor (callout 7), the opened Options row shows Format set to Table (callout 8) and Type set to Instant (callout 9), and Run queries is marked by callout 10
  11. In the right column, click the All visualizations tab.

  12. Click Table ("Supports many column styles").

    Panel editor after Run queries: the preview shows the result as a table with the columns Time, uri and Value; the All visualizations tab of the right column is marked by callout 11 and its list offers Table with the description Supports many column styles, marked by callout 12

Name the panel and set the unit

  1. In the options pane, under Panel options, type Requests per second by route in Title.

  2. Under Standard options, open Unit and choose the unit for requests per second (type requests in the search box of the picker).

  3. In Decimals, type 1. The cells now read like 4.8 req/s.

    Panel editor with the Table options pane: under Panel options the Title field holds Requests per second by route (callout 13), under Standard options the Unit is the requests per second unit (callout 14) and Decimals is 1 (callout 15); the preview shows values such as 4.8 req/s

Colour the values with thresholds

  1. Open the category Thresholds. A new panel starts with a green Base step and one more step, which is red and normally holds 80. Replace the value of the red step with 4.

  2. Click Add threshold.

    Options pane with the Thresholds category open: a red step with the value 80 marked by callout 16, the green Base step, the Add threshold button marked by callout 17 and the Thresholds mode switch set to Absolute
  3. Type 2 in the value of the new step. Leave Thresholds mode on Absolute, so that the values are request rates and not percentages.

  4. Click the colour dot of the new step and choose orange.

    Options pane with three thresholds: the red step is 4, the new step holds the value 2 (callout 18) and its colour dot, set to orange, is marked by callout 19, above the green Base step

The preview does not change yet: a table shows the colours of the thresholds only for a cell type that uses them, which step 26 sets.

Map values to words

  1. Open the category Value mappings.

  2. Click the control of the category that adds value mappings.

    Options pane with the Value mappings category open and empty: the category header is marked by callout 20 and the control that adds value mappings, drawn as a dashed box with a plus, is marked by callout 21
  3. In the dialog that opens, add a mapping for the range from 0 to 1.2 with the display text Quiet.

  4. Save the dialog with its confirm button. The category now lists the mapping.

    Options pane after the mapping was saved: the Value mappings category lists the range 0 to 1.2 shown as the text Quiet (callout 22); the preview shows Quiet in the Value column for the two routes with little traffic and the rates with the unit for the other two

Override one field

An override applies options to one field instead of to every field. Here it makes the Value cells show the colours of the thresholds.

  1. Scroll to the end of the options pane and click Add field override.

  2. In the new override, choose the matcher that selects a field by its name, and pick the field Value.

  3. Add the override property Cell type, found under Cell options, and set it to the coloured background type. The Value cells turn red, orange and green and show Quiet for the low rates.

    Options pane scrolled to its end: the Add field override button is marked by callout 24, the new override selects the field Value (callout 25) and sets the property Cell type to the coloured background type (callout 26); the preview colours the Value cells red, orange and green
  1. Click Add field override again.

  2. In the new override, choose the same matcher by name and pick the field uri.

  3. Add the override property for data links, the one named like the category Data links and actions.

  4. Add a link with the title Route detail and this URL, which opens the provisioned dashboard and sets its variable Route to the route you click:

    /d/bookshelf-service-health?var-route=${__data.fields.uri}
  5. Add a second link with the title Logs in Explore and this URL on one line, which opens Explore on the Loki data source with the Bookshelf logs of the last hour:

    /explore?schemaVersion=1&panes={"a":{"datasource":"loki","queries":[{"refId":"A","expr":"{application=\"bookshelf\"}"}],"range":{"from":"now-1h","to":"now"}}}
    Options pane with two overrides: the first one is Value with its cell type, the Add field override button is marked by callout 27, the second override selects the field uri (callout 28) and its property Data links and actions (callout 29) lists the link Route detail (callout 30) and the link Logs in Explore (callout 31); the uri cells of the preview turn into links
  6. Click Save in the header of the editor.

  7. In the Save dashboard drawer, click Save.

  8. Click Back.

  9. Click Exit edit.

  10. If Grafana 13.3.0 shows the dialog Unsaved changes, click Save, and click Save again in the drawer that opens.

  11. In the table, click the route /api/books. A menu offers the two links.

  12. Click Route detail. The dashboard Bookshelf service health opens with the Route variable set to /api/books.

  13. Use the back button of the browser, click the route again and choose Logs in Explore; Explore opens on the Loki data source.

    Dashboard Bookshelf (guides) in view mode: after a click on the route /api/books (callout 37) a menu offers the two data links, Route detail (callout 38) and Logs in Explore (callout 39)

Check the result

Open Dashboards → Guides → Bookshelf (guides). The table shows one row for each of the four routes with the rate and the unit req/s. The route names are links. The Value cells are green below 2, orange from 2 and red from 4, and the routes with a rate up to 1.2 show the word Quiet instead of the number.

To see the mapping take over, stop the load generator, wait about two minutes for the one-minute rate window to drain, and press Refresh:

curl -X POST localhost:8090/mode/stop

All the rows then show Quiet on green cells. Restore normal traffic afterwards:

curl -X POST localhost:8090/mode/normal

Variations

  • Colour the cell text instead of the background, or draw the value as a bar: change only the Cell type property of the first override.

  • Switch Thresholds mode to Percentage to treat the steps as a share of the field’s Min and Max, set under Standard options.

  • Use Value mappings on a status field to turn codes into words, for example the HTTP status 404 into Not found.

What can go wrong

Symptom Cause Fix

The thresholds change nothing in the table

The default cell type draws plain numbers, so no colour is used.

Set the override property Cell type to the coloured background type on the field Value, as in step 26.

The Value column shows 4.8 without the unit

The unit was not chosen, or the choice was typed into the picker without selecting an entry.

Open Unit again, search for requests and click the entry in the list.

A click on a route does nothing

The override matched another field than uri, or the links were saved after leaving the editor without Save.

Open the editor again, check the matcher of the second override and save the dashboard.

Explore opens empty or ignores the query

The URL of the second link was broken across lines or lost a bracket.

Edit the link and paste the URL again on one line, exactly as in step 31.

The detail dashboard shows all routes

The link text is not exactly var-route=${__data.fields.uri}, or the link opens another dashboard.

Check the URL of the first link against step 30.

Clean up

Keep the panel if you want to try the variations. To remove it, open the dashboard in edit mode, select the panel, click Delete in the Panel pane of the right sidebar and save the dashboard. The later guides in this series do not depend on it.

Where to go next