mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Inspector: hide invalid stats (#26750)
This commit is contained in:
parent
094254c0c6
commit
f9df580016
@ -23,8 +23,12 @@ export const InspectStatsTab: React.FC<InspectStatsTabProps> = ({ data, dashboar
|
||||
dataRows += frame.length;
|
||||
}
|
||||
|
||||
stats.push({ displayName: 'Total request time', value: requestTime, unit: 'ms' });
|
||||
stats.push({ displayName: 'Data processing time', value: processingTime, unit: 'ms' });
|
||||
if (requestTime > 0) {
|
||||
stats.push({ displayName: 'Total request time', value: requestTime, unit: 'ms' });
|
||||
}
|
||||
if (processingTime > 0) {
|
||||
stats.push({ displayName: 'Data processing time', value: processingTime, unit: 'ms' });
|
||||
}
|
||||
stats.push({ displayName: 'Number of queries', value: data.request.targets.length });
|
||||
stats.push({ displayName: 'Total number rows', value: dataRows });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user