Commit Graph

17 Commits

Author SHA1 Message Date
Antigravity
52c4cb1dee feat: chunks recherche (snippets) + script migration
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled
1. Recherche: fetchChunkSnippets() — après le classement RRF existant,
   récupère les passages précis qui matchent depuis NoteEmbeddingChunk.
   Pur affichage, AUCUN changement de classement.

2. Script migration: scripts/migrate-chunk-embeddings.ts
   Indexe toutes les notes existantes en fragments.
   Batch de 10, barre de progression.
   Usage: npx tsx scripts/migrate-chunk-embeddings.ts

3. Memory Echo chunk-level: à faire (US restante)
2026-06-20 17:07:38 +00:00
Antigravity
e9e829e579 fix: TOUTES les clés i18n manquantes ajoutées — 0 erreur
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m15s
CI / Deploy production (on server) (push) Successful in 37s
- general.continue/send
- structuredViews.tagApplied/filterDone/filterTodo/propertyStatus
- wizard.taskA/taskB
- richTextEditor.preview*Tip (7 clés SlashPreview)
- wizard.* au niveau racine (48 clés FR + 48 EN)
- Total: 0 clé manquante pour FR et EN
- 0 erreur TypeScript
2026-06-20 17:01:04 +00:00
Antigravity
a8785ed4f1 fix(monitoring): fix Grafana datasource UID to 'Prometheus' and handle metrics-token directory mount issue in deploy script
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m28s
CI / Deploy production (on server) (push) Successful in 1m22s
2026-05-30 11:54:30 +00:00
Antigravity
cecd8ff27d fix(monitoring): fix JSON schema for memento.json dashboard targets by using structured datasource object
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled
2026-05-30 11:52:34 +00:00
Antigravity
8d8e8a20f4 fix(monitoring): upgrade legacy templating queries for Grafana 11 and force Grafana recreation on deploy to load the Memento dashboard
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled
2026-05-30 11:49:08 +00:00
Antigravity
7e88eb64f8 fix(monitoring): fix Grafana dashboard datasource mapping, clean metrics token comments, and provision a dedicated Memento App metrics dashboard
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled
2026-05-30 11:48:16 +00:00
Antigravity
ff0fae9ae7 fix(monitoring): fix production monitoring startup, alertmanager configuration, prometheus alert syntax, and mcp healthcheck
Some checks failed
CI / Lint, Unit Tests & Build (push) Successful in 5m5s
CI / Deploy production (on server) (push) Has been cancelled
2026-05-30 11:42:32 +00:00
Antigravity
c266359f63 fix(monitoring): expose Grafana sur 0.0.0.0:3002 (était 127.0.0.1 — inaccessible depuis LAN)
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m32s
CI / Deploy production (on server) (push) Successful in 1m8s
2026-05-30 11:17:13 +00:00
Antigravity
79fd6553b7 feat(monitoring): business metrics + hardening sécurité
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m21s
CI / Deploy production (on server) (push) Successful in 3m43s
Métriques business dans /api/metrics :
- Abonnements par tier/status (BASIC/PRO/ENTERPRISE × ACTIVE/CANCELED)
- Nouveaux abonnements ce mois vs mois dernier
- Désabonnements / churn ce mois vs mois dernier
- Utilisateurs actifs 7j / 30j (proxy : note modifiée)
- Nouvelles inscriptions 7j / ce mois
- Runs agents IA par status (30j + aujourd'hui) + tokens consommés
- Usage IA par feature (requêtes + tokens ce mois)
- Logins aujourd'hui / ce mois (via AuditLog)
- Sessions brainstorm ce mois
- Flashcards total + reviews ce mois

Alertes Prometheus :
- HighChurnRate (> 10 désabonnements ce mois)
- NoNewUsersLast7Days (aucune inscription 7j)
- AgentRunsHighErrorRate (> 20% erreurs agents)
- BusinessMetricsCollectionFailed

Hardening monitoring :
- Ports monitoring → 127.0.0.1 (plus exposés publiquement)
- Images pinned (prometheus v2.53.0, grafana 11.1.0, etc.)
- alertmanager-bridge fake → metalmatze/alertmanager-bot:0.4.3
- /api/metrics sécurisé avec METRICS_TOKEN bearer
- Prometheus auth bearer via credentials_file
- Redis AOF + 256mb, healthcheck → /api/build-info
- repeat_interval 4h, inhibit_rules alertmanager
- Secrets CI/CD : AUTH_GOOGLE_SECRET, METRICS_TOKEN, GRAFANA, MCP_API_KEY

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-29 14:49:34 +00:00
Antigravity
e774dcee70 fix(monitoring): fix postgres-exporter credentials, cadvisor docker labels, node-exporter pid host
All checks were successful
CI / Lint, Test & Build (push) Successful in 1m42s
CI / Deploy production (on server) (push) Successful in 21s
2026-05-21 20:50:13 +00:00
Antigravity
d7e72008ec fix(ci): install node in runner for download-artifact and connect prometheus to memento-net
Some checks failed
CI / Deploy production (on server) (push) Successful in 3m28s
CI / Lint, Test & Build (push) Has been cancelled
2026-05-21 20:07:06 +00:00
Antigravity
7cf921a802 feat(monitoring): auto-provision Prometheus datasource and dashboards in Grafana
All checks were successful
CI / Lint, Test & Build (push) Successful in 12m6s
CI / Deploy production (on server) (push) Successful in 1m58s
2026-05-21 19:46:04 +00:00
Antigravity
396c60dec3 fix: change grafana port to 3002 to avoid conflict
Some checks failed
CI / Lint, Test & Build (push) Failing after 7m47s
CI / Deploy production (on server) (push) Has been cancelled
2026-05-17 16:52:09 +00:00
Antigravity
bf3d09f6a8 fix: change cadvisor port to 8081 to avoid conflict
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Test & Build (push) Has been cancelled
2026-05-17 16:47:12 +00:00
Antigravity
3dfe61a9fd fix: correct volume paths in monitoring compose
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Test & Build (push) Has been cancelled
2026-05-17 16:41:35 +00:00
Antigravity
612a7ccfa3 fix: use correct external network name for monitoring
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Test & Build (push) Has been cancelled
2026-05-17 16:32:53 +00:00
Antigravity
8950e83db5 feat: P0 backup system (WAL+snapshot+restore+verify), monitoring stack, admin health API
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Test & Build (push) Has been cancelled
2026-05-17 14:13:01 +00:00