Skip to content

Commit 401fe7e

Browse files
committed
Polish micrometer configuration key descriptions
Closes spring-projectsgh-10890
1 parent 92c62b6 commit 401fe7e

File tree

10 files changed

+113
-59
lines changed

10 files changed

+113
-59
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/StepRegistryProperties.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public abstract class StepRegistryProperties {
3030

3131
/**
32-
* The step size (reporting frequency) to use.
32+
* Step size (i.e. reporting frequency) to use.
3333
*/
3434
private Duration step = Duration.ofMinutes(1);
3535

@@ -39,22 +39,22 @@ public abstract class StepRegistryProperties {
3939
private Boolean enabled;
4040

4141
/**
42-
* The connection timeout for requests to the backend.
42+
* Connection timeout for requests to the backend.
4343
*/
4444
private Duration connectTimeout;
4545

4646
/**
47-
* The read timeout for requests to the backend.
47+
* Read timeout for requests to the backend.
4848
*/
4949
private Duration readTimeout;
5050

5151
/**
52-
* The number of threads to use with the metrics publishing scheduler.
52+
* Number of threads to use with the metrics publishing scheduler.
5353
*/
5454
private Integer numThreads;
5555

5656
/**
57-
* The number of measurements per request to use for the backend. If more measurements
57+
* Number of measurements per request to use for the backend. If more measurements
5858
* are found, then multiple requests will be made.
5959
*/
6060
private Integer batchSize;

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/atlas/AtlasProperties.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
public class AtlasProperties extends StepRegistryProperties {
3232

3333
/**
34-
* The URI for the Atlas backend.
34+
* URI of the Atlas server.
3535
*/
3636
private String uri;
3737

3838
/**
39-
* The TTL for meters that do not have any activity. After this period the meter will
40-
* be considered expired and will not get reported.
39+
* Time to love for meters that do not have any activity. After this period the meter
40+
* will be considered expired and will not get reported.
4141
*/
4242
private Duration meterTimeToLive;
4343

@@ -47,22 +47,22 @@ public class AtlasProperties extends StepRegistryProperties {
4747
private Boolean lwcEnabled;
4848

4949
/**
50-
* The frequency for refreshing config settings from the LWC service.
50+
* Frequency for refreshing config settings from the LWC service.
5151
*/
5252
private Duration configRefreshFrequency;
5353

5454
/**
55-
* The TTL for subscriptions from the LWC service.
55+
* Time to live for subscriptions from the LWC service.
5656
*/
5757
private Duration configTimeToLive;
5858

5959
/**
60-
* The URI for the Atlas LWC endpoint to retrieve current subscriptions.
60+
* URI for the Atlas LWC endpoint to retrieve current subscriptions.
6161
*/
6262
private String configUri;
6363

6464
/**
65-
* The URI for the Atlas LWC endpoint to evaluate the data for a subscription.
65+
* URI for the Atlas LWC endpoint to evaluate the data for a subscription.
6666
*/
6767
private String evalUri;
6868

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/datadog/DatadogProperties.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,19 @@
2929
public class DatadogProperties extends StepRegistryProperties {
3030

3131
/**
32-
* Your API key, found in your account settings at datadoghq. This property is
33-
* required.
32+
* Datadog API key.
3433
*/
3534
private String apiKey;
3635

3736
/**
38-
* The tag that will be mapped to "host" when shipping metrics to datadog, or
39-
* {@code null} if host should be omitted on publishing.
37+
* Tag that will be mapped to "host" when shipping metrics to Datadog. Can be
38+
* omitted of host should be omitted on publishing.
4039
*/
4140
private String hostTag;
4241

4342
/**
44-
* The URI to ship metrics to. If you need to publish metrics to an internal proxy
45-
* en-route to datadoghq, you can define the location of the proxy with this.
43+
* URI to ship metrics to. If you need to publish metrics to an internal proxy
44+
* en-route to Datadog, you can define the location of the proxy with this.
4645
*/
4746
private String uri;
4847

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ganglia/GangliaProperties.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@
3333
public class GangliaProperties {
3434

3535
/**
36-
* Enable publishing to the backend.
36+
* Enable publishing to Ganglia.
3737
*/
3838
private Boolean enabled;
3939

4040
/**
41-
* The step size (reporting frequency) to use.
41+
* Step size (i.e. reporting frequency) to use.
4242
*/
4343
private Duration step;
4444

4545
/**
46-
* The base time unit used to report rates.
46+
* Base time unit used to report rates.
4747
*/
4848
private TimeUnit rateUnits;
4949

5050
/**
51-
* The base time unit used to report durations.
51+
* Base time unit used to report durations.
5252
*/
5353
private TimeUnit durationUnits;
5454

@@ -58,22 +58,22 @@ public class GangliaProperties {
5858
private String protocolVersion;
5959

6060
/**
61-
* The UDP addressing mode, either unicast or multicast.
61+
* UDP addressing mode, either unicast or multicast.
6262
*/
6363
private GMetric.UDPAddressingMode addressingMode;
6464

6565
/**
66-
* The TTL for metrics on Ganglia.
66+
* Time to live for metrics on Ganglia.
6767
*/
6868
private Integer timeToLive;
6969

7070
/**
71-
* Ganglia host used for publishing.
71+
* Host of the Ganglia server to receive exported metrics.
7272
*/
7373
private String host;
7474

7575
/**
76-
* Ganglia port used for publishing.
76+
* Port of the Ganglia server to receive exported metrics.
7777
*/
7878
private Integer port;
7979

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/graphite/GraphiteProperties.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,32 +33,32 @@
3333
public class GraphiteProperties {
3434

3535
/**
36-
* Enable publishing to the backend.
36+
* Enable publishing to Graphite.
3737
*/
3838
private Boolean enabled;
3939

4040
/**
41-
* The step size (reporting frequency) to use.
41+
* Step size (i.e. reporting frequency) to use.
4242
*/
4343
private Duration step;
4444

4545
/**
46-
* The base time unit used to report rates.
46+
* Base time unit used to report rates.
4747
*/
4848
private TimeUnit rateUnits;
4949

5050
/**
51-
* The base time unit used to report durations.
51+
* Base time unit used to report durations.
5252
*/
5353
private TimeUnit durationUnits;
5454

5555
/**
56-
* Graphite host used for publishing.
56+
* Host of the Graphite server to receive exported metrics.
5757
*/
5858
private String host;
5959

6060
/**
61-
* Graphite port used for publishing.
61+
* Port of the Graphite server to receive exported metrics.
6262
*/
6363
private Integer port;
6464

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/influx/InfluxProperties.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,34 +31,34 @@
3131
public class InfluxProperties extends StepRegistryProperties {
3232

3333
/**
34-
* The tag that will be mapped to "host" when shipping metrics to Influx, or
35-
* {@code null} if host should be omitted on publishing.
34+
* Tag that will be mapped to "host" when shipping metrics to Influx. Can be
35+
* omitted of host should be omitted on publishing.
3636
*/
3737
private String db;
3838

3939
/**
40-
* The write consistency for each point.
40+
* Write consistency for each point.
4141
*/
4242
private InfluxConsistency consistency;
4343

4444
/**
45-
* Authenticate requests with this user. If not specified, the registry will not
46-
* attempt to present credentials to Influx.
45+
* Login user of the Influx server.
4746
*/
4847
private String userName;
4948

5049
/**
51-
* Authenticate requests with this password.
50+
* Login password of the Influx server.
5251
*/
5352
private String password;
5453

5554
/**
56-
* Influx writes to the DEFAULT retention policy if one is not specified.
55+
* Retention policy to use (Influx writes to the DEFAULT retention policy if one is
56+
* not specified).
5757
*/
5858
private String retentionPolicy;
5959

6060
/**
61-
* The URI for the Influx backend.
61+
* URI of the Influx server.
6262
*/
6363
private String uri;
6464

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/PrometheusProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class PrometheusProperties {
4141
private Boolean descriptions;
4242

4343
/**
44-
* The step size (reporting frequency) to use.
44+
* Step size (i.e. reporting frequency) to use.
4545
*/
4646
private Duration step;
4747

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/simple/SimpleProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class SimpleProperties {
3838
private boolean enabled;
3939

4040
/**
41-
* The step size (reporting frequency) to use.
41+
* Step size (i.e. reporting frequency) to use.
4242
*/
4343
private Duration step = Duration.ofSeconds(10);
4444

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdProperties.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,29 @@
2626
* {@link ConfigurationProperties} for configuring StatsD metrics export.
2727
*
2828
* @author Jon Schneider
29+
* @author Stephane Nicoll
2930
* @since 2.0.0
3031
*/
3132
@ConfigurationProperties(prefix = "spring.metrics.export.statsd")
3233
public class StatsdProperties {
3334

3435
/**
35-
* Enable publishing to the backend.
36+
* Export metrics to StatsD.
3637
*/
3738
private Boolean enabled;
3839

3940
/**
40-
* Variant of the StatsD line protocol to use.
41+
* StatsD line protocol to use.
4142
*/
4243
private StatsdFlavor flavor = StatsdFlavor.Datadog;
4344

4445
/**
45-
* Host name of the StatsD agent.
46+
* Host of the StatsD server to receive exported metrics.
4647
*/
4748
private String host = "localhost";
4849

4950
/**
50-
* UDP port of the StatsD agent.
51+
* Port of the StatsD server to receive exported metrics.
5152
*/
5253
private Integer port = 8125;
5354

@@ -57,14 +58,13 @@ public class StatsdProperties {
5758
private Integer maxPacketLength = 1400;
5859

5960
/**
60-
* Determines how often gauges will be polled. When a gauge is polled, its value is
61-
* recalculated. If the value has changed, it is sent to the StatsD server.
61+
* How often gauges will be polled. When a gauge is polled, its value is
62+
* recalculated and if the value has changed, it is sent to the StatsD server.
6263
*/
6364
private Duration pollingFrequency = Duration.ofSeconds(10);
6465

6566
/**
66-
* Governs the maximum size of the queue of items waiting to be sent to a StatsD agent
67-
* over UDP.
67+
* Maximum size of the queue of items waiting to be sent to the StatsD server.
6868
*/
6969
private Integer queueSize = Integer.MAX_VALUE;
7070

spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

Lines changed: 64 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,19 +1295,74 @@ content into your application; rather pick only the properties that you need.
12951295
management.trace.include=request-headers,response-headers,cookies,errors # Items to be included in the trace.
12961296
12971297
# METRICS
1298-
spring.metrics.use-global-registry=true # Whether or not auto-configured MeterRegistry implementations should be bound to the global static registry on Metrics
1299-
spring.metrics.export.atlas.enabled=true # Whether not exporting of metrics to Atlas is enabled.
1300-
spring.metrics.export.ganglia.enabled=true # Whether not exporting of metrics to Ganglia is enabled.
1301-
spring.metrics.export.graphite.enabled=true # Whether not exporting of metrics to Graphite is enabled.
1302-
spring.metrics.export.influx.enabled=true # Whether not exporting of metrics to InfluxDB is enabled.
1303-
spring.metrics.export.jmx.enabled=true # Whether not exporting of metrics to JMX is enabled.
1304-
spring.metrics.export.prometheus.enabled=true # Whether not exporting of metrics to Prometheus is enabled.
1305-
spring.metrics.export.simple.enabled=true # Whether not exporting of metrics to a simple in-memory store is enabled.
1298+
spring.metrics.use-global-registry=true # Whether or not auto-configured MeterRegistry implementations should be bound to the global static registry on Metrics.
1299+
spring.metrics.export.atlas.batch-size= # Number of measurements per request to use for the backend. If more measurements are found, then multiple requests will be made.
1300+
spring.metrics.export.atlas.config-refresh-frequency= # Frequency for refreshing config settings from the LWC service.
1301+
spring.metrics.export.atlas.config-time-to-live= # Time to live for subscriptions from the LWC service.
1302+
spring.metrics.export.atlas.config-uri= # URI for the Atlas LWC endpoint to retrieve current subscriptions.
1303+
spring.metrics.export.atlas.connect-timeout= # Connection timeout for requests to the backend.
1304+
spring.metrics.export.atlas.enabled= # Enable publishing to the backend.
1305+
spring.metrics.export.atlas.eval-uri= # URI for the Atlas LWC endpoint to evaluate the data for a subscription.
1306+
spring.metrics.export.atlas.lwc-enabled= # Enable streaming to Atlas LWC.
1307+
spring.metrics.export.atlas.meter-time-to-live= # Time to love for meters that do not have any activity. After this period the meter will be considered expired and will not get reported.
1308+
spring.metrics.export.atlas.num-threads= # Number of threads to use with the metrics publishing scheduler.
1309+
spring.metrics.export.atlas.read-timeout= # Read timeout for requests to the backend.
1310+
spring.metrics.export.atlas.step=1 # Step size (i.e. reporting frequency) to use.
1311+
spring.metrics.export.atlas.uri= # URI of the Atlas server.
1312+
spring.metrics.export.datadog.api-key= # Datadog API key.
1313+
spring.metrics.export.datadog.batch-size= # Number of measurements per request to use for the backend. If more measurements are found, then multiple requests will be made.
1314+
spring.metrics.export.datadog.connect-timeout= # Connection timeout for requests to the backend.
1315+
spring.metrics.export.datadog.enabled= # Enable publishing to the backend.
1316+
spring.metrics.export.datadog.num-threads= # Number of threads to use with the metrics publishing scheduler.
1317+
spring.metrics.export.datadog.read-timeout= # Read timeout for requests to the backend.
1318+
spring.metrics.export.datadog.step=1 # Step size (i.e. reporting frequency) to use.
1319+
spring.metrics.export.datadog.uri= # URI to ship metrics to. If you need to publish metrics to an internal proxy en-route to Datadog, you can define the location of the proxy with this.
1320+
spring.metrics.export.ganglia.addressing-mode= # UDP addressing mode, either unicast or multicast.
1321+
spring.metrics.export.ganglia.duration-units= # Base time unit used to report durations.
1322+
spring.metrics.export.ganglia.enabled= # Enable publishing to Ganglia.
1323+
spring.metrics.export.ganglia.host= # Host of the Ganglia server to receive exported metrics.
1324+
spring.metrics.export.ganglia.port= # Port of the Ganglia server to receive exported metrics.
1325+
spring.metrics.export.ganglia.protocol-version= # Ganglia protocol version. Must be either 3.1 or 3.0.
1326+
spring.metrics.export.ganglia.rate-units= # Base time unit used to report rates.
1327+
spring.metrics.export.ganglia.step= # Step size (i.e. reporting frequency) to use.
1328+
spring.metrics.export.ganglia.time-to-live= # Time to live for metrics on Ganglia.
1329+
spring.metrics.export.graphite.duration-units= # Base time unit used to report durations.
1330+
spring.metrics.export.graphite.enabled= # Enable publishing to Graphite.
1331+
spring.metrics.export.graphite.host= # Host of the Graphite server to receive exported metrics.
1332+
spring.metrics.export.graphite.port= # Port of the Graphite server to receive exported metrics.
1333+
spring.metrics.export.graphite.protocol= # Protocol to use while shipping data to Graphite.
1334+
spring.metrics.export.graphite.rate-units= # Base time unit used to report rates.
1335+
spring.metrics.export.graphite.step= # Step size (i.e. reporting frequency) to use.
1336+
spring.metrics.export.influx.batch-size= # Number of measurements per request to use for the backend. If more measurements are found, then multiple requests will be made.
1337+
spring.metrics.export.influx.compressed= # Enable GZIP compression of metrics batches published to Influx.
1338+
spring.metrics.export.influx.connect-timeout= # Connection timeout for requests to the backend.
1339+
spring.metrics.export.influx.consistency= # Write consistency for each point.
1340+
spring.metrics.export.influx.db= # Tag that will be mapped to "host" when shipping metrics to Influx. Can be omitted of host should be omitted on publishing.
1341+
spring.metrics.export.influx.enabled= # Enable publishing to the backend.
1342+
spring.metrics.export.influx.num-threads= # Number of threads to use with the metrics publishing scheduler.
1343+
spring.metrics.export.influx.password= # Login password of the Influx server.
1344+
spring.metrics.export.influx.read-timeout= # Read timeout for requests to the backend.
1345+
spring.metrics.export.influx.retention-policy= # Retention policy to use (Influx writes to the DEFAULT retention policy if one is not specified).
1346+
spring.metrics.export.influx.step=1 # Step size (i.e. reporting frequency) to use.
1347+
spring.metrics.export.influx.uri= # URI of the Influx server.
1348+
spring.metrics.export.influx.user-name= # Login user of the Influx server.
1349+
spring.metrics.export.prometheus.descriptions= # Enable publishing descriptions as part of the scrape payload to Prometheus. Turn this off to minimize the amount of data sent on each scrape.
1350+
spring.metrics.export.prometheus.enabled= # Enable publishing to Prometheus.
1351+
spring.metrics.export.prometheus.step= # Step size (i.e. reporting frequency) to use.
1352+
spring.metrics.export.simple.enabled=false # Enable publishing to the backend.
1353+
spring.metrics.export.simple.step=10 # Step size (i.e. reporting frequency) to use.
1354+
spring.metrics.export.statsd.enabled= # Export metrics to StatsD.
1355+
spring.metrics.export.statsd.flavor= # StatsD line protocol to use.
1356+
spring.metrics.export.statsd.host=localhost # Host of the StatsD server to receive exported metrics.
1357+
spring.metrics.export.statsd.max-packet-length=1400 # Total length of a single payload should be kept within your network's MTU.
1358+
spring.metrics.export.statsd.polling-frequency=10 # How often gauges will be polled. When a gauge is polled, its value is recalculated and if the value has changed, it is sent to the StatsD server.
1359+
spring.metrics.export.statsd.port=8125 # Port of the StatsD server to receive exported metrics.
1360+
spring.metrics.export.statsd.queue-size= # Maximum size of the queue of items waiting to be sent to the StatsD server.
13061361
spring.metrics.jdbc.datasource-metric-name=data.source # Name of the metric for data source usage.
13071362
spring.metrics.jdbc.instrument-datasource=true # Instrument all available data sources.
13081363
spring.metrics.web.client.record-request-percentiles=false # Whether or not instrumented requests record percentiles histogram buckets by default.
13091364
spring.metrics.web.client.requests-metric-name=http.client.requests # Name of the metric for sent requests.
1310-
spring.metrics.web.server.auto-time-requests=true Whether or not requests handled by Spring MVC or WebFlux should be automatically timed.
1365+
spring.metrics.web.server.auto-time-requests=true # Whether or not requests handled by Spring MVC or WebFlux should be automatically timed.
13111366
spring.metrics.web.server.record-request-percentiles=false # Whether or not instrumented requests record percentiles histogram buckets by default.
13121367
spring.metrics.web.server.requests-metric-name=http.server.requests # Name of the metric for received requests.
13131368

0 commit comments

Comments
 (0)