Rule-Based Labeling

Rule-based labeling allows you to assign labels to one or more workloads when their attributes match the conditions you specify in easily-configurable rules. This simplifies the task of labeling multiple workloads.

Before you begin

  • Label assignment:

    • You can assign system default and user-defined labels to matching workloads.

    • You can assign only one label of a given type to a workload.

    • Rule-Based Labeling assigns labels to workloads but doesn't replace existing labels already assigned to workloads. For example, if a matching workload has an existing Location label of New York and your labeling rule specifies a Location label of London, the existing New York Location label is preserved and the London Location label is bypassed.

  • Depending on how many workloads match labeling rules, it may take a few minutes for the labels to be assigned to all of them. To verify that labels have been assigned to the matching workloads, check the Workloads page (Servers & Workloads).

  • An event is created when a rule-based label is assigned to a workload. The name format of the event differs depending on how the label is assigned:

    • When assigned from the PCE UI: label_mapping_rules_run.assign_labels

    • When assigned from a system job: system_task.automatic_label_application_for_new_vens

Typical Labeling Rule Workflow

Here is a typical workflow for adding rules, launching a search for matching workloads, and assigning labels.

Step 1: Add a Labeling Rule

Labeling rules work by identifying workloads in your environment that match certain conditions you specify and then assigning one or more labels to those workloads. See Add a Labeling Rule

Step 2: Find and review matching workloads

After adding labeling rules, let the Rule Labeling feature search your environment for workloads that match the rule conditions, and then review the generated list of workloads. See Find and Review Matching Workloads

Step 3: Assign labels to matching workloads

Once the feature finds matching workloads, you can assign the labels you specified in Step 1: Add a Labeling Rule. See Assign labels to matching workloads.