forked from csainty/RavenRelic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSampleView.txt
29 lines (27 loc) · 960 Bytes
/
SampleView.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% assign requestCount = application.metrics['RavenDB/RequestCount'] %}
{% assign sessionCount = application.metrics['RavenDB/SessionCount'] %}
{% assign queries = application.metrics.find_by_regexp['RavenDB/Query/.*'] %}
<table>
<thead>
<tr>
<th>Query</th>
<th>Hits</th>
<th>Hits/min</th>
<th>Avg. Resp.</th>
<th>Min / Max</th>
</tr>
</thead>
<tbody>
{% for query in queries %}
<tr>
<td>{{ query.name }}</td>
<td>{{ query.call_count.value }}</td>
<td>{{ query.calls_per_minute.value }}</td>
<td>{{ query.average_response_time.value }}ms</td>
<td>{{ query.min_call_time.value }}ms / {{ query.max_call_time.value }}ms</td>
</tr>
{% endfor %}
<tbody>
</table>
{% line_chart value:count metric:requestCount title:'Requests/sec' %}
{% line_chart value:count metric:sessionCount title:'Sessions/sec' %}