Create segments for teams
As organizations grow, you can use segmentation to manage Adaptive Logs per team, service, department, or system.
To create a segment, complete the following steps.
Create, update, and manage segments through the Grafana user interface.
To create a new segment, complete the following steps.
Navigate to Adaptive Logs > Configuration.
Click Add new segment.
Enter a name.
Give your segment a descriptive name that clearly identifies the team it applies to.
Enter a label.
Specify the log stream label that distinguishes the metrics belonging to a particular team. In the context of Kubernetes, this is often namespace.
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 log streams. In the UI, you can select values using a dropdown. Enter the exact name of the Kubernetes namespaces or label values for the team (for example, 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.
(Optional): Select Fallback to default pattern configuration checkbox.
Select this checkbox to apply the pattern’s default drop rate to any log streams that do not belong to a specific team segment. When unchecked, unmatched log streams have a drop rate of 0%.
Click Add.
Set a per-segment drop rate for multiple patterns
Use per-segment drop rate overrides to apply drop rates to patterns for specific segments.
To set a per-segment drop rate override for multiple patterns, complete the following steps.
Select the segment you want to set drop rates for.
Select all the patterns for that particular segment or pick and choose which patterns to select.
Click Bulk edit service drop rates.
Enter the percentage drop rate you want to set for the segment.
The projected savings after you apply changes is displayed.
Click Apply.
Set per-segment drop rates within a specific pattern
To create drop rates for multiple segments producing logs with the same pattern, complete the following steps.
On the Pattern tab, expand a pattern.
Review which services are producing logs with that pattern.
Click the Edit icon to edit drop rates.
Enter the percentage drop rate you want to add for each service.
The projected savings after you apply changes is displayed.
Click Apply.
In the next milestone, you’ll learn how to automatically apply recommendations.
At this point in your journey, you can explore the following paths:
