zentol commented on a change in pull request #12138:
URL: https://github.com/apache/flink/pull/12138#discussion_r426394581
##########
File path:
flink-metrics/flink-metrics-datadog/src/main/java/org/apache/flink/metrics/datadog/DatadogHttpReporter.java
##########
@@ -157,6 +181,11 @@ private void addGaugesAndUnregisterOnException(DSeries
request) {
// Flink uses Gauge to store many types other
than Number
g.getMetricValue();
request.addGauge(g);
+ ++currentCount;
+ if (currentCount % maxMetricsPerRequestValue ==
0 || currentCount >= totalGauges) {
+ client.send(request);
Review comment:
yes, you'D of course have to rap the subList in a DSeries again,
requiring a new constructor.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]