Meter Dimensions

Dimensions

Amberflo Metering Services enables you to ask and answer the following question in real-time and with accuracy:
What was used by whom, when, where, and how much?

Amberflo Meter Event data structure encapsulates this the following way -

What = Meter Name and API
Whom = Customer ID
When = Timestamp
How much = Meter Value
Where = Dimensions

As part of your meter definition you can add dimensions (custom key-value pairs).
Dimensions are the schemaless portion of the meter definition. It is a powerful metadata construct that give you full flexibility in customizing the payload for a meter event.

You might have one or more attributes related to the "where" aspect of the meter event.
For example,

  • where did this meter originate at (e.g. cloud provider, region, zone, etc.)
  • who, in addition to the customer ID should I attribute this meter to (e.g. cluster name, project, department, etc.)
  • state of the event
  • other attributes/markers

Amberflo automatically groups and filters the meter events by Dimensions.
For example, if you create a Dimension name called: Cloud_Provider and send values ranging from (AWS, Azure, Google, ...), Amberflo automatically sorts, groups and filters meter events by these dimension values.

Dimensions serve an important function in a cloud metering service. It allows you to enrich your meter records with custom fields.

Note: If Dimensions are not defined ahead of time, new ones are automatically created upon ingestion.

Ingestion
Amberflo automatically pivots (aggregates and groups) meter events by each dimension. Using the Usage Explorer you can, in real-time, view aggregated meter events sorted by dimension.

Extraction
Amberflo Usage API enables you to extract aggregated meter events and values by dimension.

Below are some common dimension types but you are free to create any dimensions specific to your use case and domain:

  1. Additional resource or application IDs
  2. Department name
  3. Cluster name or Project name
  4. Cloud Region, Zone, etc.
  5. Deployment environment
  6. Customer type
  7. Service version
    more...
{
      "tenant":"Wayne Enterprises, Inc.",
      "tenant_id":"54a43bba-915d-4512-a0bd-9d9debe2eb3a",
      "meter_name":"ApiCalls",
      "meter_value":575,
      "time":1619445706909,
      "dimensions":{
         "region":"us-east-2",
         "tenant_type":"Tech"
     }