Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
601157f5
Commit
601157f5
authored
Feb 09, 2018
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Add publishUnchangedMeters StatsD support"
Closes gh-11967
parent
e02eba2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
StatsdProperties.java
...autoconfigure/metrics/export/statsd/StatsdProperties.java
+4
-3
StatsdPropertiesConfigAdapter.java
.../metrics/export/statsd/StatsdPropertiesConfigAdapter.java
+3
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdProperties.java
View file @
601157f5
...
@@ -59,8 +59,8 @@ public class StatsdProperties {
...
@@ -59,8 +59,8 @@ public class StatsdProperties {
/**
/**
* How often gauges will be polled. When a gauge is polled, its value is recalculated
* How often gauges will be polled. When a gauge is polled, its value is recalculated
* and if the value has changed (or publishUnchangedMeters is true),
* and if the value has changed (or publishUnchangedMeters is true),
it is sent to the
*
it is sent to the
StatsD server.
* StatsD server.
*/
*/
private
Duration
pollingFrequency
=
Duration
.
ofSeconds
(
10
);
private
Duration
pollingFrequency
=
Duration
.
ofSeconds
(
10
);
...
@@ -72,7 +72,7 @@ public class StatsdProperties {
...
@@ -72,7 +72,7 @@ public class StatsdProperties {
/**
/**
* Send unchanged meters to the StatsD server.
* Send unchanged meters to the StatsD server.
*/
*/
private
Boolean
publishUnchangedMeters
=
true
;
private
Boolean
publishUnchangedMeters
;
public
Boolean
getEnabled
()
{
public
Boolean
getEnabled
()
{
return
this
.
enabled
;
return
this
.
enabled
;
...
@@ -137,4 +137,5 @@ public class StatsdProperties {
...
@@ -137,4 +137,5 @@ public class StatsdProperties {
public
void
setPublishUnchangedMeters
(
Boolean
publishUnchangedMeters
)
{
public
void
setPublishUnchangedMeters
(
Boolean
publishUnchangedMeters
)
{
this
.
publishUnchangedMeters
=
publishUnchangedMeters
;
this
.
publishUnchangedMeters
=
publishUnchangedMeters
;
}
}
}
}
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/statsd/StatsdPropertiesConfigAdapter.java
View file @
601157f5
...
@@ -80,6 +80,8 @@ public class StatsdPropertiesConfigAdapter
...
@@ -80,6 +80,8 @@ public class StatsdPropertiesConfigAdapter
@Override
@Override
public
boolean
publishUnchangedMeters
()
{
public
boolean
publishUnchangedMeters
()
{
return
get
(
StatsdProperties:
:
getPublishUnchangedMeters
,
StatsdConfig
.
super
::
publishUnchangedMeters
);
return
get
(
StatsdProperties:
:
getPublishUnchangedMeters
,
StatsdConfig
.
super
::
publishUnchangedMeters
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment