Adding a Metric in Meteroid
To create a new metric, navigate to: Product Catalog > Metrics > New Metric Then, you will need to enter the following details:- Metric Name – A unique name that will help identify the billable metric when defining pricing strategies.
- Product Line – A Product Line represents a category or grouping of related Plans (cf. Glossary for more details). If needed, Account Managers can activate the Product Line feature in Settings. Once activated, when Account Managers create a Plan, they must assign it to a specific Product Line and only Metrics from the same Product Line can be used to define pricing components for that Plan. By default, Meteroid automatically assigns Metrics and Plans to the “Default” Product Line.
- Event Code – This is the usage event used to build a billable Metric. It corresponds to the name of the event that your system sends to Meteroid and that Meteroid should consider to build the billable Metric. Indeed, Metrics are assembled by filtering and aggregating (cf. Aggragation Type below) these incoming events.
- Description – A brief explanation of the metric and what it measures.
- Aggregation Type – Defines how the data is processed by Meteroid. It is applied to the values included in the events matching the Event Code.
- Count – Counts the number of occurrences of an event (e.g., API calls).
- Count Distinct – Counts the number of unique occurrences (e.g., unique users accessing a feature).
- Sum – Sums up numerical values (e.g., total data usage in GB).
- Mean – Calculates the average value (e.g., average response time).
- Min – Retrieves the minimum recorded value.
- Max – Retrieves the maximum recorded value.
- Latest – Captures the most recent recorded value.
- No Segmentation – By default, the metric is not segmented.
- Single Dimension Segmentation – Allows different pricing strategies based on a single attribute (e.g., Cloud Provider).
- Example: You want different pricing for AWS, Azure, and GCP.
- Fields to fill:
- Dimension (e.g., “Cloud Provider”)
- Values – List the different values, separated only by a comma without spaces (e.g., “AWS,Azure Cloud,GCP”, not “AWS, Azure Cloud, GCP”
- When configuring a plan, you can set different prices for each cloud provider.
- Two-Dimensional (Independent) Segmentation – Allows separate pricing for two independent attributes (e.g., Cloud Provider & Region).
- Fields to fill:
- Dimension 1 (e.g., “Cloud Provider”) with values “AWS,Azure Cloud,GCP” (separated by coma without spaces).
- Dimension 2 (e.g., “Geography”) with values “North America,Europe,Asia” (separated by coma without spaces).
- Each dimension is independent, meaning pricing can be set separately for each cloud provider in each region.
- Fields to fill:
- Two-Dimensional (Dependent) Segmentation – Allows pricing variations based on two interdependent attributes (e.g., Cloud Provider & Region).
- Fields to fill:
- Dimension (e.g., “Cloud Provider”)
- Relative Dimension (e.g., “Geography”)
- Values: The possible combinations of the two dimensions, formatted as follows:
- Fields to fill:
- Two Dimensions (Independent): You must define a price for every possible combination of the two dimensions (e.g., every Cloud Provider in every Geography).
- Two Dimensions (Dependent): You can restrict pricing to specific valid combinations (e.g., AWS may only be available in North America and Europe).
This allows you to group usage events by values from your events (e.g.,
cluster_id
, project_id
). These groups will then be displayed on Invoices, making it easier for Customers to understand how usage is allocated across different projects, clusters, or other attributes.
💡 Note: Groups are considered independent. For exampple, if you configure a tiered pricing model, the usage within each group will be evaluated separately. The consumption from different groups will not be summed across groups when determining the applicable tier.