You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2018/10/16 13:06:39 UTC
[GitHub] gianm commented on a change in pull request #6473:
QueryCountStatsMonitor: emit query/total/count
gianm commented on a change in pull request #6473: QueryCountStatsMonitor: emit query/total/count
URL: https://github.com/apache/incubator-druid/pull/6473#discussion_r225528948
##########
File path: server/src/main/java/org/apache/druid/server/metrics/QueryCountStatsMonitor.java
##########
@@ -46,7 +46,8 @@ public boolean doMonitor(ServiceEmitter emitter)
final ServiceMetricEvent.Builder builder = new ServiceMetricEvent.Builder();
Map<String, Long> diff = keyedDiff.to(
"queryCountStats",
- ImmutableMap.of("query/success/count", statsProvider.getSuccessfulQueryCount(),
+ ImmutableMap.of("query/total/count", statsProvider.getSuccessfulQueryCount() + statsProvider.getFailedQueryCount(),
Review comment:
Should it include interrupted too? It looks like "failed" and "interrupted" are exclusive.
For consistency I'd also suggest retrieving the successful/failed/interrupted counts first, then summing them into the total. This is because the counts are always getting updated in the background, and if you call `getSuccessfulQueryCount()` more than once, the two won't necessarily be the same.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org