The in-memory metrics system covered one gunicorn process at a time, was lost on restart and was never used. Remove /admin/metrics-dashboard, /admin/metrics, starpunk/monitoring, the HTTP/query timing, memory monitor, feed counters, METRICS_* settings and psutil. Keep /health, /admin/health (without its metrics block), pool stats and the feed cache. ADR-072. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
883 B
HTML
26 lines
883 B
HTML
{% extends "base.html" %}
|
|
|
|
{# Admin pages use a wider frame so tables fit under the header #}
|
|
{% block body_class %} class="admin-page"{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="admin-container">
|
|
<nav class="admin-nav">
|
|
<a href="{{ url_for('admin.dashboard') }}">Dashboard</a>
|
|
<a href="{{ url_for('admin.new_note_form') }}">New Note</a>
|
|
<a href="{{ url_for('admin.tokens') }}">Connected Apps</a>
|
|
<form action="{{ url_for('auth.logout') }}" method="POST" class="logout-form"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit" class="button button-secondary">Logout</button>
|
|
</form>
|
|
</nav>
|
|
|
|
<div class="admin-content">
|
|
{% if user_me %}
|
|
<p class="user-identity">Logged in as: <strong>{{ user_me }}</strong></p>
|
|
{% endif %}
|
|
|
|
{% block admin_content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|