Assign a display name to an instance

Overview

By default, NGINX One Console identifies each NGINX instance by its hostname. To assign a display name to an instance, set the reserved display-name NGINX Agent label. After NGINX Agent reports the label, NGINX One Console shows the display name alongside the hostname. You can then use the display name to filter and sort instances.

Before you begin

Before you start, make sure that you have:

  • NGINX Agent installed and connected to NGINX One Console.
  • Access to the NGINX Agent configuration file, CLI, or container environment.

Set a display name

Set the display-name label using any of the NGINX Agent label configuration sources.

Configuration file

Add the label to the labels section of /etc/nginx-agent/nginx-agent.conf:

yaml
labels:
  display-name: prod-usw2-edge-03

CLI parameters

nginx-agent --labels=display-name=prod-usw2-edge-03

Environment variables

export NGINX_AGENT_LABELS="display-name=prod-usw2-edge-03"

After you save your changes, restart NGINX Agent to apply them:

sudo systemctl restart nginx-agent
Important

Display names must be 256 characters or fewer. If a value exceeds this limit, the instance registers without a display name.

Display names cannot include Unicode characters like emoji or other multi-byte characters.

Where the display name appears

Once NGINX Agent reports the display-name label, NGINX One Console uses it in the following places:

  • The Instances list and Instance details page, alongside the hostname.
  • Instance filters and sort options, so you can find instances by display name.
  • Data Plane Key details, Config Sync Group instance lists, and Staged Config publish flows.
  • Instance metrics dashboards and F5 WAF for NGINX security events, where available.

If an instance doesn’t have a display name set, NGINX One Console continues to show its hostname.