Skip to content

Tags

You can add tags to workloads to allow you to group them in ways that make sense for you. For example, you might add a 'department' tag to group workloads together.

You can use tags to help you explore your workloads in two ways:

  • Filtering: You can filter workloads by tags to see only the workloads that are relevant to you.
  • Grouping: You can group your query results using tags to see how they are distributed across different categories.

Adding tags to a workload

To add tags to a workload, use the tags field in the workload configuration:

workloads:
  - id: athena
    tags:
      department: sales
      country: UK
    # ... other workload config

  - id: gaia
    tags:
      department: finance
      country: UK
    # ... other workload config

Filtering workloads by tags

You can filter workloads by tags using the tags field in the workload query:

Adding a tag

For example, to filter workloads by the department tag:

Filtering by a single tag

The possible values for the tag will be displayed in the dropdown menu.

You can also filter workloads that match one of multiple tags:

Filtering by multiple tags

Grouping workloads by tags

You can group your query results by tags using the tags field in the workload grouping menu:

Grouping by a tag

Set the tag to group by:

Setting the tag to group by

Query results for each workload will be aggregated by the tag value (in this example, by pod).