Manage database tags

Manage tags for databases in a Redis Software cluster.

Redis Software

You can create custom tags to categorize databases in a Redis Software cluster.

The Databases screen shows tags for each database in the list.

The databases screen includes tags for each database.

Add database tags

You can add tags when you create a database or edit an existing database's configuration.

To add tags to a database using the Cluster Manager UI:

  1. While in edit mode on the database's configuration screen, click Add tags.

    The Add tags button on the database configuration screen.
  2. Enter a key and value for the tag. Keys and values previously used by existing tags will appear as suggestions.

    The Manage tags dialog lets you add, edit, or delete tags.
  3. To add additional tags, click Add tag.

  4. After you finish adding tags, click Done to close the tag manager.

  5. Click Create or Save.

Edit database tags

To edit a database's existing tags using the Cluster Manager UI:

  1. Go to the database's Configuration screen, then click Edit.

  2. Next to the existing Tags, click Edit tags button .

    The Edit tags button on the database configuration screen.
  3. Edit or delete existing tags, or click Add tag to add new tags.

  4. After you finish editing tags, click Done to close the tag manager.

  5. Click Save.

Tag validation rules

The following rules apply to tags you create or edit.

Tag keys and values are preserved exactly as you enter them. Redis Software does not change their casing.

Key rules:

  • A key must not be empty or contain only whitespace.
  • A key must be unique on the database. Uniqueness is exact and case-sensitive, so env and Env are different keys.
  • A key must be at most 64 characters.
  • A key must start with a letter or an underscore and can contain only letters, digits, and underscores.
  • A key must not be a system key. See System tags.

Valid key examples: env, team, TEAM, _owner, app_1.

Invalid key examples: 1team, env.prod, team-name, region:az, with space, bad/key.

Value rules:

  • A value must not be empty or contain only whitespace.
  • A value must be at most 128 characters.
  • A value can contain letters, digits, spaces, and the characters . _ + - @ : /.

Valid value examples: prod, Team A, us-east-1, service/api, [email protected], v1.2.3.

Count limit:

  • A database can have at most 30 tags that meet these rules. System tags and unchanged legacy tags do not count toward this limit.

Backward compatibility for existing tags

The current validation rules were introduced in Redis Software version 8.2.0, when database tags became eligible to be exposed as labels in v2 metrics. In particular, tag keys must follow the Prometheus label name rules. Tags created before version 8.2.0 might not meet these rules.

Existing tags that do not meet the current validation rules can remain on a database for backward compatibility, as long as they are unchanged. A tag is considered unchanged only when both its key and its value stay exactly the same.

If you edit the key or value of such a tag, the edited tag must pass the current validation rules. Unchanged legacy tags that do not meet the rules are not eligible for metrics. To use them in metrics, replace or rename them with valid tags.

System tags

Some tag keys, such as redis, cluster, and db, are reserved for internal use by Redis Software. These are called system tags:

  • You cannot add or manage system tags through normal database configuration. These reserved keys are rejected.
  • System tags cannot be exposed in metrics.
  • When you retrieve tags, the response can include an isSystem marker that identifies system tags. This marker is computed by Redis Software each time tags are returned. It is not a customer-editable or persistent field, and any isSystem value you send when writing tags is ignored. You cannot turn a tag into a system tag by setting isSystem.
  • Editing your own tags does not remove system tags that are already stored on the database.

Use database tags in metrics

You can expose selected database tags as labels in v2 metrics through a dedicated db_tags metric. This lets you build dashboards, alerts, filters, and ownership views that are grouped by your tags, once the relevant tag keys are enabled in the cluster's metrics configuration.

For how to enable export, choose which tag keys are exposed, query metrics with db_tags, and use tags in observability platforms such as Prometheus, Grafana, Datadog, New Relic, and Dynatrace, see Database tags in metrics.

Troubleshooting database tags

Why can't I add a tag?

Check if your tags adhere to the validation rules.

Why can't I update the value of some of the existing tags?

Those tags are likely legacy tags that no longer meet the current validation rules.

RATE THIS PAGE
Back to top ↑