Aggregating metrics
When first using Metrics Explorer, Kloudfuse uses the default aggregation for the chosen metric.
You can change the aggregation type, remove the aggregation, or aggregate the metric over another dimension.
Change aggregation type
The default aggregation on the metric is average, or avg. You can also aggregate for min, max, and sum directly in the interface. To use other aggregation options, see Add functions.
To change the basic aggregation type, follow these steps:
-
In the aggregation section, click avg, and select another aggregation calculation from the drop-down.
-
The chart changes to show the newly selected aggregation of results.
Here are the examples of the same chart, with the four supported aggregations:
Aggregate over other dimensions
By default, Kloudfuse calculates the aggregations over the values of the metric. However, you can choose to aggregate over another dimension, such as host, cluster, service, and so on.
Here, let’s explore the metric advanced_functions_sertver_http_request_latency_bucket
.
-
To aggregate over another dimension, in the metrics selector specify the aggregation by clicking Select, and choosing another metric option from the drop-down.
Here, select the option availability zone.
-
The interface refreshes to show the new aggregate.
Notice that in the interval between 21:25 and 21:30, there are two separate plots.
Remove aggregation
By default, Kloudfuse aggregates the data for the same metric. However, if you remove the aggregation option, it plots the stream separately.
Follow these steps:
-
To remove the aggregation, in the aggregation section click the
(Remove) icon.
-
The separated plot appears in the interface.
-
To look at the individual components, click into the descriptive text under the chart, and scroll through the options.
To see a specific component only, click on its description. The chart shows only that section of the chart.