Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 3f59ff9

Browse files
author
Bogdan Drutu
authored
Temporary remove Max aggregation and add details how to convert Aggregation into Metrics. (#90)
* Temporary remove Max aggregation and add details how to convert Aggregation into Metrics. * Fix typo for distribution measure type and add details about units. * Replace Any with Int64 or Double * Small typo.
1 parent 16ea797 commit 3f59ff9

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

stats/DataAggregation.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ An Aggregation describes how data collected is aggregated.
1111
The library SHOULD provide support for multiple types of Aggregations:
1212
* `Count`: counts the number of measurements recorded.
1313
* `Sum`: indicates that data collected and aggregated with this `Aggregation` will be summed up.
14-
* `Max`: indicates that data collected and aggregated with this `Aggregation` will calculate the
15-
maximum value recorded.
1614
* `LastValue`: indicates that data collected and aggregated with this `Aggregation` will
1715
represent the last recorded value. This is useful to support Gauges.
1816
* `Distribution`: indicates that the desired `Aggregation` is a histogram distribution. A
@@ -31,7 +29,7 @@ within the library.
3129
* `columns`: an array of tag keys. These values associated with tags of this name form the basis
3230
by which individual stats will be aggregated (one aggregation per unique tag value). If none are
3331
provided, then all data is recorded in a single aggregation.
34-
* `aggregation`: `Distribution`, `Count`, `Sum`, `LastValue`, `Max`.
32+
* `aggregation`: `Distribution`, `Count`, `Sum`, `LastValue`.
3533

3634
Implementations SHOULD define a View data type, constructed from the parameters above. Views MAY
3735
have getters for retrieving all of the information used in View definition. Once created, View

stats/Export.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ The library SHOULD provide support for multiple types of Aggregations:
1313
* `CountData`: data generated for a `Count` aggregation.
1414
* `SumDataDouble` and `SumDataInt64`: data generated for a `Sum` aggregation based on the `Measure`
1515
type.
16-
* `MaxData`: data generated for a `Max` aggregation.
1716
* `LastValueDataDouble` and `LastValueDataInt64`: data generated for a `LastValue` aggregation based
1817
on the `Measure` type.
1918
* `DistributionData`: data generated for a `Distribution` aggregation.
@@ -28,3 +27,16 @@ parameter from the `View` and the aggregated data associated with those `columns
2827
* `end_time`: a timestamp, describing the end time of the current stats snapshot.
2928

3029
The library SHOULD provide a means of retrieving the ViewData for any registered view in the system.
30+
31+
### Aggregation to Metric
32+
33+
| Aggregation | Measure Type | Metric Type | Value Type | Unit |
34+
|--------------|-----------------|--------------|--------------|--------------------|
35+
| Count | Int64 or Double | CUMULATIVE | INT64 | Dimensionless Unit |
36+
| Sum | Double | CUMULATIVE | DOUBLE | Measure Unit |
37+
| Sum | Int64 | CUMULATIVE | INT64 | Measure Unit |
38+
| LastValue | Double | GAUGE | DOUBLE | Measure Unit |
39+
| LastValue | Int64 | GAUGE | INT64 | Measure Unit |
40+
| Distribution | Int64 or Double | CUMULATIVE | DISTRIBUTION | Measure Unit |
41+
42+
Dimensionless Unit can be represented as "1".

0 commit comments

Comments
 (0)