mongo_host on index
This commit is contained in:
parent
4e860f7b44
commit
d87a702bfe
@ -12,6 +12,7 @@ oyster
|
|||||||
<dt>Queue Size</dt><dd>{{queue_size}}</dd>
|
<dt>Queue Size</dt><dd>{{queue_size}}</dd>
|
||||||
<dt>Tracking</dt><dd>{{tracking}}</dd>
|
<dt>Tracking</dt><dd>{{tracking}}</dd>
|
||||||
<dt>Need Update</dt><dd>{{need_update}}</dd>
|
<dt>Need Update</dt><dd>{{need_update}}</dd>
|
||||||
|
<dt>Mongo Host</dt><dd>{{mongo_host}}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ import functools
|
|||||||
import flask
|
import flask
|
||||||
import pymongo.objectid
|
import pymongo.objectid
|
||||||
|
|
||||||
|
from oyster.conf import settings
|
||||||
from oyster.client import get_configured_client
|
from oyster.client import get_configured_client
|
||||||
|
|
||||||
|
|
||||||
@ -50,6 +51,7 @@ def index():
|
|||||||
'tracking': client.db.tracked.count(),
|
'tracking': client.db.tracked.count(),
|
||||||
'need_update': client.get_update_queue_size(),
|
'need_update': client.get_update_queue_size(),
|
||||||
'logs': client.db.logs.find().sort('$natural', -1).limit(20)
|
'logs': client.db.logs.find().sort('$natural', -1).limit(20)
|
||||||
|
'mongo_host': settings.MONGO_HOST,
|
||||||
}
|
}
|
||||||
return status
|
return status
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user