You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/influx/InfluxProperties.java
+31-26Lines changed: 31 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -58,17 +58,21 @@ public class InfluxProperties extends StepRegistryProperties {
58
58
privateStringretentionPolicy;
59
59
60
60
/**
61
-
* Time period for which influx should retain data in the current database (e.g. 2h, 52w)
61
+
* Time period for which Influx should retain data in the current database. For
62
+
* instance 7d, check the influx documentation for more details on the duration
63
+
* format.
62
64
*/
63
65
privateStringretentionDuration;
64
66
65
67
/**
66
-
* How many copies of the data are stored in the cluster. Must be 1 for a single node instance.
68
+
* How many copies of the data are stored in the cluster. Must be 1 for a single node
69
+
* instance.
67
70
*/
68
71
privateIntegerretentionReplicationFactor;
69
72
70
73
/**
71
-
* The time range covered by a shard group (e.g. 2h, 52w).
74
+
* Time range covered by a shard group. For instance 2w, check the influx
75
+
* documentation for more details on the duration format.
72
76
*/
73
77
privateStringretentionShardDuration;
74
78
@@ -128,6 +132,30 @@ public void setRetentionPolicy(String retentionPolicy) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/influx/InfluxPropertiesTests.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,12 @@ public void defaultValuesAreConsistent() {
0 commit comments