{% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %}

Statistics


Entity namespace

{% for (wname, write), (rname, read) in zip(storage_manager.get_write_namespace()|sort, storage_manager.get_read_namespace()|sort, fillvalue=(None, None)) %} {% endfor %}
CollectionDocs count
WriteRead
{{ wname or rname }}{{ write.estimated_document_count() if write else '' }}{{ read.estimated_document_count() if read else ''}}

Meta namespace

{% for name, collection in storage_manager.get_meta_namespace()|sort %} {% endfor %}
CollectionDocs count
{{ name }}{{ collection.estimated_document_count() }}

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)' }}
{% for state in state_manager.get_state_history(10) %} {% endfor %}
namestarted at
{{ state['name'] }}{{ state['started_at'].isoformat() }}

Storage summary


{% set info = storage_manager.get_info() %}

Replica set ({{ info['replica_set']['set'] }})

{% for node in info['replica_set']['members']|sort(attribute='_id') %} {% endfor %}
nodenamestatehealthuptime
{{ node['_id'] }}{{ node['name'] }}{{ node['stateStr'] }}{% if node['health'] == 1.0 %}up{% else %}down{% endif %}{{ human_delta(node['uptime']) }}

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
{% for collection, info in storage_manager.get_collections_info()|sort %} {% endfor %}
CollectionDocs countData sizeIndex sizeStorage size
{{ collection }} {{ info['count'] }} {{ info['size'] }} MB {{ info['totalIndexSize'] }} MB {{ info['storageSize'] }} MB

Actions