Change the way the AggregateMetricReader works to make it easier
for users to get started. It also makes it more flexible if different
aggregation keys are needed depending on the environment. The most
important new feature is the
spring.metrics.export.redis.aggregateKeyPattern configuration, which
fits the *.redis.key and prefix defaults. The aggregate reader uses
a prefix based on the key by default, with a naming convention that
the key starts with "keys.".
@ -42,7 +42,7 @@ public class AggregateMetricReader implements MetricReader {
@@ -42,7 +42,7 @@ public class AggregateMetricReader implements MetricReader {
privateMetricReadersource;
privateinttruncate=2;
privateStringkeyPattern="d.d";
privateStringprefix="aggregate.";
@ -51,21 +51,32 @@ public class AggregateMetricReader implements MetricReader {
@@ -51,21 +51,32 @@ public class AggregateMetricReader implements MetricReader {
@ -128,12 +139,22 @@ public class AggregateMetricReader implements MetricReader {
@@ -128,12 +139,22 @@ public class AggregateMetricReader implements MetricReader {
@ -105,8 +104,8 @@ public class MetricExportProperties extends TriggerProperties {
@@ -105,8 +104,8 @@ public class MetricExportProperties extends TriggerProperties {
@ -118,6 +117,15 @@ public class MetricExportProperties extends TriggerProperties {
@@ -118,6 +117,15 @@ public class MetricExportProperties extends TriggerProperties {
@ -134,14 +142,22 @@ public class MetricExportProperties extends TriggerProperties {
@@ -134,14 +142,22 @@ public class MetricExportProperties extends TriggerProperties {