25 min (S12.1 : 10 min · S12.2 : 15 min)
M07
NOC Telcéa supervisé, alerté, organisé
plugin.json d'un plugin et en déduire son type, son identifiant et sa compatibilité10 min
flowchart LR A["Générer<br/>create-plugin"] --> B["Développer<br/>React + TypeScript"] B --> C["Tester<br/>Docker, Playwright"] C --> D["Construire<br/>npm run build"] D --> E["Signer<br/>sign-plugin"] E --> F["Publier<br/>ou installer"]
@grafana/create-plugin 9.0.4), Docker, Gitnpx @grafana/create-plugin@latest \
--plugin-type=panel --plugin-name=noc-status --org-name=telcea --no-backendSortie relevée au banc (extrait) :
✓ Scaffolded telcea-nocstatus-panel panel plugin
✓ Added basic E2E test (Playwright)
✓ Configured development environment (Docker)<organisation>-<nom>-<type> → telcea-nocstatus-panel| Fichier | Rôle |
|---|---|
src/plugin.json |
Identité : type, id, nom, version minimale de Grafana (>=13.2.0) |
src/module.ts |
Point d'entrée : panel + options affichées dans l'éditeur |
src/components/SimplePanel.tsx |
Rendu React du panel (données reçues en data frames) |
docker-compose.yaml |
Grafana de développement avec le plugin monté |
tests/ |
Tests de bout en bout (Playwright) |
npm run dev (compilation continue), npm run build, npm run e2e, npm run sign| Étape | Commande | Résultat |
|---|---|---|
| Dépendances | npm install |
Modules Node installés |
| Compilation continue | npm run dev |
dist/ régénéré à chaque modification |
| Grafana de test | docker compose up |
http://localhost:3000, plugin chargé |
| Tests | npm run test, npm run e2e |
Tests unitaires (Jest), E2E (Playwright) |
| Signature | npm run sign (jeton grafana.com) |
MANIFEST.txt signé |
allow_loading_unsigned_plugins)15 min
flowchart LR J1["J1 Construire<br/>sources, tableaux<br/>de bord, graphiques"] --> J2a["J2 Exploiter<br/>variables, plugins<br/>partage"] J2a --> J2b["J2 Sécuriser<br/>alertes, droits<br/>croisement"]
grafana-training| Objectif | Modules | Note |
|---|---|---|
| Maîtriser les dashboards de Grafana | M04, M05, M06, M08 | 1 – 4 |
| Savoir configurer un flux de données source | M02, M03, M11 | 1 – 4 |
| Utiliser les plugins | M07, M12 | 1 – 4 |
| Alerter et gérer les accès | M09, M10 | 1 – 4 |
evaluation-finale.md)create-plugin → React / TypeScript → tests → build → signature → publicationplugin.json = identité et compatibilité du pluginnpx @grafana/create-plugin@latestgrafana cli plugins createnpm init grafanadocker compose upnpx @grafana/create-plugin@latest.README.mddocker-compose.yamlCHANGELOG.mdsrc/plugin.jsonsrc/plugin.json, champ grafanaDependency.NocStatustelcea-nocstatus-panelpanel_nocgrafana-telcea<organisation>-<nom>-<type>.npm run dev ?allow_loading_unsigned_plugins avec l'identifiant du pluginallow_loading_unsigned_plugins (section [plugins]), en développement uniquement.