added raw info

This commit is contained in:
Baris Usakli
2013-12-05 14:30:18 -05:00
parent 519d376071
commit b927f6ce29
3 changed files with 13 additions and 1 deletions

View File

@@ -24,6 +24,11 @@
<span>Keyspace Hits</span> <span class="text-right">{keyspace_hits}</span><br/> <span>Keyspace Hits</span> <span class="text-right">{keyspace_hits}</span><br/>
<span>Keyspace Misses</span> <span class="text-right">{keyspace_misses}</span><br/> <span>Keyspace Misses</span> <span class="text-right">{keyspace_misses}</span><br/>
</div> </div>
<hr />
<h3>Raw Info </h3>
<div class="highlight">
<pre>{raw}</pre>
</div>
<!-- ENDIF redis --> <!-- ENDIF redis -->
<!-- IF mongo --> <!-- IF mongo -->
@@ -39,4 +44,9 @@
<span>Storage Size</span> <span class="text-right">{storageSize} kb</span><br/> <span>Storage Size</span> <span class="text-right">{storageSize} kb</span><br/>
<span>File Size</span> <span class="text-right">{fileSize} kb</span><br/> <span>File Size</span> <span class="text-right">{fileSize} kb</span><br/>
</div> </div>
<hr />
<h3>Raw Info </h3>
<div class="highlight">
<pre>{raw}</pre>
</div>
<!-- ENDIF mongo --> <!-- ENDIF mongo -->

View File

@@ -75,6 +75,8 @@
stats.avgObjSize = (stats.avgObjSize / 1024).toFixed(2); stats.avgObjSize = (stats.avgObjSize / 1024).toFixed(2);
stats.raw = JSON.stringify(stats, null, 4);
stats.mongo = true; stats.mongo = true;
//remove this when andrew adds in undefined checking to templates //remove this when andrew adds in undefined checking to templates
stats.redis = false; stats.redis = false;

View File

@@ -122,7 +122,7 @@
winston.warn('can\'t parse redis status variable, ignoring', i, data[i], err); winston.warn('can\'t parse redis status variable, ignoring', i, data[i], err);
} }
} }
redisData.raw = JSON.stringify(redisData, null, 4);
redisData.redis = true; redisData.redis = true;
//remove this when andrew adds in undefined checking to templates //remove this when andrew adds in undefined checking to templates
redisData.mongo = false; redisData.mongo = false;