mirror of https://github.com/apache/druid.git
emit query/node/bytes metric
This commit is contained in:
parent
e38b7554e4
commit
b96f560255
|
@ -30,6 +30,7 @@ Available Metrics
|
|||
|------|-----------|----------|------------|
|
||||
|`query/time`|Milliseconds taken to complete a query.|Common: dataSource, type, interval, hasFilters, duration, context, remoteAddress, id. Aggregation Queries: numMetrics, numComplexMetrics. GroupBy: numDimensions. TopN: threshold, dimension.|< 1s|
|
||||
|`query/node/time`|Milliseconds taken to query individual historical/realtime nodes.|id, status, server.|< 1s|
|
||||
|`query/node/bytes`|bytes returned from querying individual historical/realtime nodes.|id, status, server.| |
|
||||
|`query/node/ttfb`|Time to first byte. Milliseconds elapsed until broker starts receiving the response from individual historical/realtime nodes.|id, status, server.|< 1s|
|
||||
|`query/intervalChunk/time`|Only emitted if interval chunking is enabled. Milliseconds required to query an interval chunk.|id, status, chunkInterval (if interval chunking is enabled).|< 1s|
|
||||
|
||||
|
|
|
@ -278,6 +278,7 @@ public class DirectDruidClient<T> implements QueryRunner<T>
|
|||
byteCount.get() / (0.0001 * (stopTime - responseStartTime))
|
||||
);
|
||||
emitter.emit(builder.build("query/node/time", stopTime - requestStartTime));
|
||||
emitter.emit(builder.build("query/node/bytes", byteCount.get()));
|
||||
synchronized (done) {
|
||||
try {
|
||||
// An empty byte array is put at the end to give the SequenceInputStream.close() as something to close out
|
||||
|
|
Loading…
Reference in New Issue