stats.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends 'base.html' %}
  2. {% block extra_js %}
  3. {% endblock %}
  4. {% block title %}System Statistics{% endblock %}
  5. {% block content %}
  6. <h2>Repository</h2>
  7. <p>Current resource count: <strong>{{ '{:,}'.format(rsrc_stats['main']) }}</strong></p>
  8. <p>Historic snapshots: <strong>{{ '{:,}'.format(rsrc_stats['hist']) }}</strong></p>
  9. <p>Total triples: <strong>{{ '{:,}'.format(store_stats['num_triples']) }}</strong></p>
  10. <h2>Binary Store</h2>
  11. <p>Current file count: <strong>{{ '{:,}'.format(nonrdf_stats['ct']) }}</strong></p>
  12. <p>Current size on disk: <strong>{{ fsize_fmt(nonrdf_stats['size']) }}</strong></p>
  13. <h2>RDF Store</h2>
  14. <p>Overall size on disk: <strong>{{ fsize_fmt(store_stats['store_size'])}}</strong></p>
  15. <h3>LMDB Store Details</h3>
  16. <p>Refer to the <a href="http://lmdb.readthedocs.io/en/release/#lmdb.Environment.stat">LMDB API documentation</a> for details about the parameters below.</p>
  17. {% for db_label, db in store_stats['db_stats'].items() %}
  18. <h4>{{ db_label }}</h4>
  19. <table class="table table-striped">
  20. <thead>
  21. <tr>
  22. <td>Property</td>
  23. <td>Value</td>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. {% for p, v in db.items() | sort %}
  28. <tr>
  29. <td>{{ p }}</td>
  30. <td>{{ v }}</td>
  31. </tr>
  32. {% endfor %}
  33. </tbody>
  34. </table>
  35. {% endfor %}
  36. {% endblock %}