{% extends 'admin/admin_base.html' %} {% block title %}Dane systemowe{% endblock %} {% block admin_content %}

Dane systemowe

Skrócony widok techniczny: proces, health, baza, integracje i katalogi.
Redis: {{ data.health.redis|upper }} {{ data.health.redis_details or 'brak szczegółów' }}
{% for card in data.overview %}
{{ card.label }}
{{ card.value }}
{{ card.subvalue }}
{% endfor %}
Proces i health
CPU
{{ data.process.cpu_percent }}%
RAM
{{ data.process.rss_human }}
PID
{{ data.process.pid }}
Wątki
{{ data.process.threads }}
Otwarte pliki
{{ data.process.open_files }}
Pamięć hosta
{{ data.process.system_memory_percent }}%
{% set ok_values = ['ok', 'mock', 'configured', 'fallback'] %} {% set health_items = [('Baza', data.health.db), ('SMTP', data.health.smtp), ('Redis', data.health.redis), ('KSeF', data.health.ksef), ('CEIDG', data.health.ceidg)] %} {% for label, value in health_items %}
{{ label }}
{{ value }}
{% endfor %}
Podsumowanie health{{ data.overview[5].value }}

Python: {{ data.process.python }}
Platforma: {{ data.process.platform }}
Aplikacja
Użytkownicy
{{ data.app.users_count }}
Firmy
{{ data.app.companies_count }}
Tryb tylko do odczytu{{ 'ON' if data.app.read_only_global else 'OFF' }}
Aktywna firma
{{ data.app.current_company }}
Strefa czasowa
{{ data.app.app_timezone }}
Największe zbiory danych
{% for item in data.app.counts_top[:5] %}
{{ item.label }}{{ item.count }}
{% endfor %}
Baza danych
Silnik: {{ data.database.engine }}
Połączenie: {{ data.database.uri }}
{% if data.database.sqlite_path %}
SQLite: {{ data.database.sqlite_path }} ({{ data.database.sqlite_size }})
{% endif %}
Największe tabele
{% for item in data.database.largest_tables %}
{{ item.table }}{{ item.rows }}
{% endfor %}
Katalogi robocze
{% for item in data.storage %} {% endfor %}
KatalogRozmiarWolneZajęcie
{{ item.label }}
{{ item.path }}
{{ item.size_human }} {{ item.disk_free }} {{ item.disk_percent }}%
Połączenie KSeF {{ data.integrations.ksef.status }}
Komunikat: {{ data.integrations.ksef.message }}
Endpoint: {{ data.integrations.ksef.base_url or '—' }}
{% if data.integrations.ksef.auth_mode %}
Tryb autoryzacji: {{ data.integrations.ksef.auth_mode }}
{% endif %}
Przykładowa odpowiedź API
{{ json_preview(data.integrations.ksef.sample) }}
Połączenie CEIDG {{ data.integrations.ceidg.status }}
Komunikat: {{ data.integrations.ceidg.message }}
Tryb: {{ data.integrations.ceidg.environment }}
Endpoint: {{ data.integrations.ceidg.url }}
{% if data.integrations.ceidg.technical_details %}
Szczegóły: {{ data.integrations.ceidg.technical_details }}
{% endif %}
Przykładowa odpowiedź API
{{ json_preview(data.integrations.ceidg.sample) }}
Modele aplikacji
{% for item in data.app.counts %}{% endfor %}
ObiektLiczba
{{ item.label }}{{ item.count }}
Tabele bazy
{% for item in data.database.table_rows %}{% endfor %}
TabelaRekordy
{{ item.table }}{{ item.rows }}
{% endblock %}