{% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %}
Statistics
Entity namespace
Collection | Docs count |
Write | Read |
{% for (wname, write), (rname, read) in zip(storage_manager.get_write_namespace()|sort,
storage_manager.get_read_namespace()|sort, fillvalue=(None, None)) %}
{{ wname or rname }} | {{ write.estimated_document_count() if write else '' }} | {{ read.estimated_document_count() if read else ''}} |
{% endfor %}
Meta namespace
Collection | Docs count |
{% for name, collection in storage_manager.get_meta_namespace()|sort %}
{{ name }} | {{ collection.estimated_document_count() }} |
{% endfor %}
Last message
{% set api_last_message = message_manager.get_last_message() %}
{% set emission_last_message = meta_data['last_message'] %}
| API | {{ settings.SERVICE_NAME }} | |
id | {{ api_last_message['_id'] }} | {{ emission_last_message['id'] }} | {{ emission_last_message['id'] - api_last_message['_id'] }} |
time | {{ api_last_message['time'] }} | {{ emission_last_message['creation_time'] }} | {{ human_delta(parse_date(emission_last_message['creation_time']) - parse_date(api_last_message['time'])) or '(none)' }} |
{% set metric_url = get_delta_metric_url(902) %}
{% if metric_url %}

{% endif %}
State
{% set state = state_manager.get_state() %}
name | {{ state['name'] }} |
started at | {{ state['started_at'].isoformat() }} |
prefixes |
- write:
{{ state['prefixes']['write'] or '(none)' }}
- read:
{{ state['prefixes']['read'] or '(none)' }}
|
name | started at |
{% for state in state_manager.get_state_history(10) %}
{{ state['name'] }} | {{ state['started_at'].isoformat() }} |
{% endfor %}
Storage summary
{% set info = storage_manager.get_info() %}
Replica set ({{ info['replica_set']['set'] }}
)
node | name | state | health | uptime |
{% for node in info['replica_set']['members']|sort(attribute='_id') %}
{{ node['_id'] }} | {{ node['name'] }} | {{ node['stateStr'] }} | {% if node['health'] == 1.0 %}up{% else %}down{% endif %} | {{ human_delta(node['uptime']) }} |
{% endfor %}
Database
name | {{ info['database']['db'] }} |
collections | {{ info['database']['collections'] }} |
indexes | {{ info['database']['indexes'] }} |
objects | {{ info['database']['objects'] }} |
average object size | {{ info['database']['avgObjSize'] }} B |
data size | {{ info['database']['dataSize'] }} MB |
index size | {{ info['database']['indexSize'] }} MB |
storage size | {{ info['database']['storageSize'] }} MB |
Collection | Docs count | Data size | Index size | Storage size |
{% for collection, info in storage_manager.get_collections_info()|sort %}
{{ collection }} |
{{ info['count'] }} |
{{ info['size'] }} MB |
{{ info['totalIndexSize'] }} MB |
{{ info['storageSize'] }} MB |
{% endfor %}
Actions