@@ -53,6 +53,14 @@ public String getMonitoringService() {
53
53
return _monitoringService ;
54
54
}
55
55
56
+ public String getMonitoringHost () {
57
+ return _monitoringHost ;
58
+ }
59
+
60
+ public int getMonitoringPort () {
61
+ return _monitoringPort ;
62
+ }
63
+
56
64
public int getHttpPort () {
57
65
return _httpPort ;
58
66
}
@@ -164,6 +172,8 @@ public String toString() {
164
172
private ClusterAggregatorConfiguration (final Builder builder ) {
165
173
_monitoringCluster = builder ._monitoringCluster ;
166
174
_monitoringService = builder ._monitoringService ;
175
+ _monitoringHost = builder ._monitoringHost ;
176
+ _monitoringPort = builder ._monitoringPort ;
167
177
_httpHost = builder ._httpHost ;
168
178
_httpPort = builder ._httpPort ;
169
179
_httpHealthCheckPath = builder ._httpHealthCheckPath ;
@@ -188,6 +198,8 @@ private ClusterAggregatorConfiguration(final Builder builder) {
188
198
189
199
private final String _monitoringCluster ;
190
200
private final String _monitoringService ;
201
+ private final String _monitoringHost ;
202
+ private final int _monitoringPort ;
191
203
private final File _logDirectory ;
192
204
private final String _httpHost ;
193
205
private final int _httpPort ;
@@ -245,6 +257,30 @@ public Builder setMonitoringService(final String value) {
245
257
return this ;
246
258
}
247
259
260
+ /**
261
+ * The monitoring endpoint host (Where to post data). Optional. Cannot be null or empty. Default
262
+ * is 'localhost'.
263
+ *
264
+ * @param value The monitoring endpoint uri.
265
+ * @return This instance of <code>Builder</code>.
266
+ */
267
+ public Builder setMonitoringHost (final String value ) {
268
+ _monitoringHost = value ;
269
+ return this ;
270
+ }
271
+
272
+ /**
273
+ * The monitoring endpoint port. Optional. Cannot be null, must be between 1 and
274
+ * 65535 (inclusive). Defaults to 7090.
275
+ *
276
+ * @param value The port to listen on.
277
+ * @return This instance of <code>Builder</code>.
278
+ */
279
+ public Builder setMonitoringPort (final Integer value ) {
280
+ _monitoringPort = value ;
281
+ return this ;
282
+ }
283
+
248
284
/**
249
285
* The http host address to bind to. Cannot be null or empty.
250
286
*
@@ -489,6 +525,12 @@ public Builder setCalculateClusterAggregations(final Boolean value) {
489
525
private String _monitoringService = "cluster_aggregator" ;
490
526
@ NotNull
491
527
@ NotEmpty
528
+ private String _monitoringHost = "localhost" ;
529
+ @ NotNull
530
+ @ Range (min = 1 , max = 65535 )
531
+ private Integer _monitoringPort = 7090 ;
532
+ @ NotNull
533
+ @ NotEmpty
492
534
private String _httpHost = "0.0.0.0" ;
493
535
@ NotNull
494
536
@ Range (min = 1 , max = 65535 )
0 commit comments