Create ingestion rules to control metric-ingestion costs.
With ingestion rules, you block low-value metrics from Cloud Observability based on metric names and other attributes. Ingestion rules can help you:
This page shows how to view, create, and delete ingestion rules. It also shows how Cloud Observability estimates a rule’s impact on your monthly ATS usage.
The sections below assume you’ve:
The sections are also primarily for users with the Organization Billing Admin role. Organization Billing Admin users can do everything with ingestion rules, including creating, renaming, and deleting rules. Other roles (Organization Admin, Organization Editor, and Organization Viewer) can only do the following:
To view ingestion rules in Cloud Observability, click Settings > Metric ingestion rules. The Metric ingestion rules page has two tabs: Active rules and Activity.
The Active rules tab lists the ingestion rules working in Cloud Observability. It shows these details about each rule:
You can also click a rule to learn more about it, including its configuration and who created it.
The Activity tab shows all ingestion-rule user activity. The tab is organized by time, and you can use it to see when users create, delete, and update rules.
The table in the Activity tab includes this information:
You can also click a rule to learn more about it, including its configuration and who created it.
Ingestion rules block data from Cloud Observability, helping you lower your ATS usage. When creating ingestion rules, keep in mind the following:
Follow these steps to create an ingestion rule:
Next, create a filter for your rule by selecting attribute keys and values. You can add several filters to your rule by clicking add filter. Example:
The rule in the image below blocks all metrics named requests
where the customer
attribute isn’t sweetpines
.
Note that when you use !=
, you block everything except that value.
Preview the estimated effects of your rule on your ATS usage.
Cloud Observability uses data from the past 30 days to estimate how the rule impacts your ATS usage, providing this information:
Note that the estimates use historical data. The actual changes may differ because they depend on future data ingestion.
Cloud Observability displays Rule saved and returns you to the Active rules tab. Your rule now appears in the table, and you can rename the rule by clicking ⋮ More > Edit name.
You can only edit rule names in Cloud Observability. To change a rule’s configuration, delete the rule and then create a new one.
When you delete an ingestion rule, Cloud Observability stops implementing the rule and ingests data matching the rule.
Deleting a rule can affect your ATS usage, so you may risk going over your limits. Cloud Observability can’t estimate how much your ATS usage may increase because it’s been blocking data matching the rule.
Follow these steps to delete an ingestion rule:
Cloud Observability displays Successfully deleted <rule name> and returns you to the Active rules tab.
You now know how to use ingestion rules to help control Cloud Observability costs. To learn more about billing, visit the links below.
Updated Apr 24, 2023