Partition hierarchy
Partitions are hierarchical, which lets you model the ownership structure of your organization. A global partition is created by default, and captures all consumption. Individual teams can create distinct partitions, with child partitions for individual services and environments. All created partitions are children of the global partition, and each created partition has a default partition to collect any traffic not explicitly captured by other partitions. Default partitions are created automatically, and ensure that all consumption is accounted for at every level and sums correctly into parent partitions. The maximum number of partitions you can create is 100, with up to five levels of child partitions. The following diagram depicts the hierarchy of partitions stemming from theglobal
partition. Two created partitions are children of the global partition: one for the
ordering_team and another for the auth-team. Each of those partitions have child
partitions for each team’s individual service, with additional child partitions for
prod, staging, and dev environments.
View partitions
Select from the following methods to view and filter available partitions.- Chronoctl
- API
To use Chronoctl to return all partitions, use the
chronoctl consumption-config read command:Create partitions
Select from the following methods to create partitions.- Chronoctl
- Terraform
- API
To use Chronoctl to create a partitions, use the
chronoctl consumption-config create command:-
Run the following command to generate a sample partition configuration you can use
as a template:
In the template,
kind: ConsumptionConfigdefines an individual partition. -
With a completed definition, submit it with:
Replace
FILE_NAMEwith the name of the YAML definition file you want to use.
Next steps
After creating a partition, use the Logging License Consumption dashboard to analyze consumption trends across partitions to understand what’s driving growth and detect unwanted spikes.Chronoctl partition example
The following Chronoctl example implements the partition structure outlined in the diagram that describes log partitions at the start of this page.Terraform partition example
The following Terraform example implements the partition structure outlined in the diagram that describes log partitions at the start of this page.Update partitions
Select from the following methods to update log partitions.- Chronoctl
- Terraform
- API
To update partitions with Chronoctl, use the
consumption-config update command:- Update the partition definition file.
-
Run the following command to submit the changes:
Replace
FILE_NAMEwith the name of the YAML definition file you want to use.
Delete partitions
Select from the following methods to delete log partitions.Users can modify Terraform-managed resources only by using Terraform.
Learn more.
- Chronoctl
- Terraform
- API
To delete a partition with Chronoctl, use the
Replace
chronoctl consumption-config delete command:SLUG with the slug of the partition you want to delete.For example, to delete a partition with the slug ordering-service-production: