Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Metrics

Adriana Stefanova edited this page Jan 9, 2018 · 5 revisions

While the measures represent the raw data, metrics combine and derive value from that data.

As already mentioned, the raw data is submitted to Abacus. Once the data is submitted, Abacus is able to meter and aggregate the measures into metrics.

You can find several metrics in the Abacus example object store metering plan:

{
  name: 'storage',
  unit: 'GIGABYTE',
  ....
},
{
  name: 'thousand_light_api_calls',
  unit: 'THOUSAND_CALLS',
  ...
},
{
 name: 'heavy_api_calls',
 unit: 'CALL',
 ...
}

The metrics above first convert the measures to gigabytes and thousands of calls, and then combine them in order to derive a quantifiable value.

The metrics can produce simple numbers or compound data structures if they need to keep state, or to perform some complex processing.

Related Links

Clone this wiki locally