Meter Event Label Filtering
This section is not necessary for out-of-the-box basic usage of the Octane platform. We recommend going through the other guides first before reading this section.
When configuring a meter using events, you have the option to define a specific set of label filters. These filters ensure that only measurements for that event whose primary labels align with these filters will be considered for the meter. This functionality enhances the adaptability of events, enabling a meter to measure a distinct subset of event measurements based on their primary labels.
Each specific filter allows you to either match a single label key to a value, or check that a label key exists:
Filters are wrapped by expressions. With expressions, you can recursively combine filters and other expressions to create more complex rules. Each expression allows you to specify either AND or OR when combining the results of the nested filters/expressions. The default expression operator is AND.
Each expression has a boolean field is_expressionthat denotes whether the nested filter is an expression or a filter. If is_expression is True, you must provide the field filters. If False, you must provide the field filter.
You can additionally specify not_filter = True to match the inverse of a filter or expression.
Note: If not_filteris set to True for an "EQUALS"filter, the filter will additionally return True if the key is not provided.
Meter event label filters can currently be created via the Create Meter API. Simply set the field event_label_filter to the intended filter.