Create segments for teams

As your organization grows, you can use segmentation to manage Adaptive Metrics on a per-team or per-service basis. With segments in place, each team filters the UI to view recommendations and manage rules that apply only to their specific metrics. This empowers them to control their own metric costs and cardinality.

To create a segment, complete the following steps.

  1. Navigate to Adaptive Metrics > Configuration.

  2. Click Add new segment.

  3. Enter a name.

    Give your segment a descriptive name that clearly identifies the team it applies to.

  4. Enter a label.

    Specify the metric label that distinguishes the metrics belonging to a particular team. In the context of Kubernetes, this is often namespace.

  5. Enter a value.

    Define the criteria for matching the label you specified. This is where you tell Grafana which values of that label correspond to the current team’s metrics. In the UI, you can select values using a dropdown. Enter the exact name of the Kubernetes namespace(s) or label value(s) for the team (e.g., web-frontend, web-backend). If a team owns multiple namespaces, you can enter multiple values.

    Note

    Each value can only be used once. Therefore, once a value is added to a segment, it cannot be used in another.

  6. (Optional): Select Fallback to default rules checkbox.

    Select this checkbox to apply the general, default aggregation rules to any metrics that do not belong to a specific team segment. When unchecked (default), these unmatched metrics are ignored.

  7. Click Add.

In the next milestone, you’ll learn how to automatically apply recommendations.

More to explore (optional)

At this point in your journey, you can explore the following paths:

Configure segmentation


page 5 of 9