stats.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 resources: <strong>{{ '{:,}'.format(rsrc_stats['main']) }}</strong></p>
  8. <p>Historic snapshots: <strong>{{ '{:,}'.format(rsrc_stats['hist']) }}</strong></p>
  9. <p>Triples: <strong>{{ '{:,}'.format(store_stats['num_triples']) }}</strong></p>
  10. <h2>LMDB Store</h2>
  11. <p>Overall size on disk: <strong>{{ fsize_fmt(
  12. store_stats['idx_db_size'] + store_stats['data_db_size']
  13. )}}</strong></p>
  14. <h3>Data</h3>
  15. <p>Size on disk: <strong>{{ fsize_fmt(store_stats['data_db_size']) }}</strong></p>
  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['data_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. <h3>Indices</h3>
  37. <p>Size on disk: <strong>{{ fsize_fmt(store_stats['idx_db_size']) }}</strong></p>
  38. {% for db_label, db in store_stats['idx_db_stats'].items() %}
  39. <h4>{{ db_label }}</h4>
  40. <table class="table table-striped">
  41. <thead>
  42. <tr>
  43. <td>Property</td>
  44. <td>Value</td>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. {% for p, v in db.items() | sort %}
  49. <tr>
  50. <td>{{ p }}</td>
  51. <td>{{ v }}</td>
  52. </tr>
  53. {% endfor %}
  54. </tbody>
  55. </table>
  56. {% endfor %}
  57. {% endblock %}