docs: guide de supervision (Grafana + Prometheus + alerting Discord) - #23
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Cette PR ajoute une documentation de supervision (Grafana + Prometheus + alerting Discord) pour monitorer la VM CTFd et prévenir des incidents (ex. disque plein), et la référence depuis le README.
Changes:
- Ajout d’une section “Supervision” dans le README pointant vers la nouvelle documentation.
- Création d’un guide
docs/SUPERVISION.mddétaillant l’architecture, l’installation et l’alerting Discord.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| README.md | Ajoute un pointeur vers la documentation de supervision. |
| docs/SUPERVISION.md | Nouveau guide complet pour mettre en place Grafana/Prometheus + alerting Discord. |
Comments suppressed due to low confidence (2)
docs/SUPERVISION.md:52
- Même point : remplacer l'IP Tailscale réelle de la VM CTF dans l'exemple Prometheus par un placeholder (sinon la doc devient spécifique à l'environnement actuel et révèle l'adressage interne).
- targets: ['100.118.132.76:9100']
docs/SUPERVISION.md:89
- Même point : les URLs d'accès contiennent une IP Tailscale réelle. Remplacer par un placeholder (ex:
<IP_TAILSCALE_GRAFANA_VM>) et/ou rappeler comment la récupérer via l'admin Tailscale, comme dans le README.
- **Grafana** : `http://100.84.158.83:3000` (via Tailscale). Changer le mot de passe admin par défaut.
- **Prometheus** : `http://100.84.158.83:9090`.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ## Supervision | ||
|
|
||
| Le serveur CTFd est supervisé (métriques temps réel + alertes Discord) via une VM |
| @@ -0,0 +1,103 @@ | |||
| # Supervision — RootMeUp | |||
|
|
|||
| Supervision de la santé du serveur CTFd (métriques temps réel) + **alerting** vers | |||
| ## Architecture | ||
|
|
||
| ``` | ||
| VM Grafana (Tailscale 100.84.158.83) VM CTF (100.118.132.76) |
| ### 2. Sur la VM Grafana — Grafana + Prometheus | ||
| ```bash | ||
| # Grafana (dépôt officiel) | ||
| sudo apt install -y apt-transport-https software-properties-common wget |
Comment on lines
+71
to
+73
| Dashboard **« Node Exporter Full » (ID 1860)** provisionné dans | ||
| `/var/lib/grafana/dashboards/` (télécharger depuis `grafana.com/api/dashboards/1860`, | ||
| remplacer `${DS_PROMETHEUS}` par `prometheus`). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.