{% extends "modern/base.html" %} {% block title %}TapDB Metrics - BLOOM LIMS{% endblock %} {% block content %}

DB Metrics (TSV)

Enabled: {{ "yes" if metrics_enabled else "no" }}
Period start (UTC): {{ period_start_utc }}
File: {{ metrics_file }}
Dropped (process): {{ dropped_count }}
{% if metrics_message %}
{{ metrics_message }}
{% endif %}
{{ summary.count }}
Rows Parsed
{{ "%.1f"|format(summary.p50_ms) }}
p50 ms
{{ "%.1f"|format(summary.p95_ms) }}
p95 ms
{{ "%.1f"|format(summary.p99_ms) }}
p99 ms
{{ "%.1f"|format(summary.max_ms) }}
max ms

Slowest Queries (Top 25)

{% for row in summary.slowest %} {% endfor %}
ms ok op table route user error ts
{{ "%.3f"|format(row.duration_ms) }} {{ "1" if row.ok else "0" }} {{ row.op }} {{ row.table_hint }} {{ row.method }} {{ row.path }} {{ row.username }} {{ row.error_type }} {{ row.ts_utc }}

By Route (p95)

{% for row in summary.by_path[:25] %} {% endfor %}
route count p95 ms max ms
{{ row.path }} {{ row.count }} {{ "%.3f"|format(row.p95_ms) }} {{ "%.3f"|format(row.max_ms) }}

By Table Hint (p95)

{% for row in summary.by_table[:25] %} {% endfor %}
table count p95 ms max ms
{{ row.table_hint }} {{ row.count }} {{ "%.3f"|format(row.p95_ms) }} {{ "%.3f"|format(row.max_ms) }}
{% endblock %} {% block extra_css %} {% endblock %}