Skip to content

Displaying the server name

John Fox edited this page Jun 4, 2022 · 1 revision

To customize how the server name is displayed, we'll use Grafana's value mapping feature.

Value mapping allows us to take a given input value, and if that value matches, provide a given output instead of the original value. For example:

If server ID value equals 9840, then display Comcast - New Castle, DE instead of the value.

To do this in Grafana:

  1. Hover over Test Server and press e, or click Test Server and select Edit.

    Screenshot at Jun 04 15-37-46

  2. In the Panel Options sidebar on the right, scroll down to the "Value Mappings" section, and click on the Edit value mappings button:

    Screenshot at Jun 04 15-40-06

  3. For the purposes of this widget, the value will be the four or five-digit server ID, and the display text can be the server name or anything else you'd like. Optionally, you can specific a color as well.

    Screenshot at Jun 04 15-42-59

  4. When you're finished editing, click Update. Don't forget to also click Save in the widget editor to save your changes.

  5. Click the disk icon on the dashboard to save your changes, otherwise it will reset on next load.

    Screenshot at Jun 04 15-44-32

Clone this wiki locally