Développeur – Monitoring

Retour au chat
{% if dashboard %}

Santé (healthcheck)

{{ 'Prêt' if dashboard.health.ready else 'Non prêt' }} Chunks indexés : {{ dashboard.health.chunk_count or 0 }} (index FAISS)
{{ dashboard.health.message or '-' }}

Pipeline – Métadonnées

Dernière exécution : {{ dashboard.pipeline.last_run or 'Jamais' }}
Durée totale : {% if dashboard.pipeline.duration_seconds is not none %}{{ dashboard.pipeline.duration_seconds }} s{% else %}-{% endif %}
Mode : {{ dashboard.pipeline.mode or '-' }}
{% if dashboard.pipeline.error %}
Erreur {{ dashboard.pipeline.error }}
{% endif %}

Étape 1 – Scraping (crawl)

{% if dashboard.pipeline.scraping_stats and dashboard.pipeline.scraping_stats.total_urls is not none %}
total_urls{{ dashboard.pipeline.scraping_stats.total_urls }}
pages_with_content{{ dashboard.pipeline.scraping_stats.pages_with_content or '-' }}
failed_urls{{ (dashboard.pipeline.scraping_stats.failed_urls|length) if dashboard.pipeline.scraping_stats.failed_urls else 0 }}
{% else %}
Aucune donnée (indexation non exécutée)
{% endif %}

Étape 2 – Chunking (sémantique)

Chunks produits : {{ dashboard.health.chunk_count or 0 }}
Découpage par similarité sémantique (NLTK + SentenceTransformer)

Étape 3 – Embeddings & index FAISS

Vecteurs (embeddings) : {{ dashboard.health.chunk_count or 0 }}
all-mpnet-base-v2 → IndexFlatIP (cosine similarity)

Mémoire & Chat

Mémoire longue durée : {{ dashboard.memory.entries_count or 0 }} entrées
Historique chat (session) : {{ dashboard.chat.history_count or 0 }} échanges

Dépenses API Scaleway

{% if dashboard.scaleway_billing and dashboard.scaleway_billing|length %}
Période : {{ dashboard.scaleway_billing.period or 'Mois courant' }}
{% if dashboard.scaleway_billing.error %}
Erreur API {{ dashboard.scaleway_billing.error }}
{% endif %} {% if dashboard.scaleway_billing.total_eur is not none and not dashboard.scaleway_billing.error %}
Total mois : {{ "%.2f"|format(dashboard.scaleway_billing.total_eur) }} {{ dashboard.scaleway_billing.currency or 'EUR' }}
{% if dashboard.scaleway_billing.consumptions %} {% for c in dashboard.scaleway_billing.consumptions %}{% endfor %}
CatégorieMontant
{{ c.category }}{{ "%.2f"|format(c.amount_eur) if c.amount_eur is not none else '-' }} €
{% endif %}{% endif %} {% else %}
Définir SCW_ORGANIZATION_ID (ou SCW_ENDPOINT) et une clé API avec droit BillingReadOnly pour afficher les dépenses.
{% endif %}

Configuration (.env)

DEBUG {{ 'Activé (1)' if dashboard.config.debug else 'Désactivé (0)' }} — {{ 'Flask debug ON, scraping max 15 URLs' if dashboard.config.debug else 'Flask debug OFF, scraping sans limite' }}
SCW_API_KEY {{ 'Défini' if dashboard.config.scw_api_set else 'Non défini' }}
WIKI_USERNAME {{ 'Défini' if dashboard.config.wiki_username_set else 'Non défini' }}
WIKI_PASSWORD {{ 'Défini' if dashboard.config.wiki_password_set else 'Non défini' }}
{% else %}
Erreur lors du chargement. Utilisez Rafraîchir.
{% endif %}