diff --git a/content/posts/commits/2026-05-01-commit-0120f0b.md b/content/posts/commits/2026-05-01-commit-0120f0b.md new file mode 100644 index 0000000..561dafc --- /dev/null +++ b/content/posts/commits/2026-05-01-commit-0120f0b.md @@ -0,0 +1,59 @@ +--- +title: "[bojemoi] fix(grafana): résoudre les dashboards 'no data' - 6 corrections" +date: 2026-05-01T22:44:58+02:00 +draft: false +tags: ["commit", "bojemoi", "main"] +categories: ["Git Activity"] +summary: "Commit 0120f0b par Betty dans bojemoi" +author: "Betty" +--- + +## Commit `0120f0b` + +| | | +|---|---| +| **Repository** | bojemoi | +| **Branch** | `main` | +| **Author** | Betty | +| **Hash** | `0120f0b799851f915c49330e748760161c778d7b` | + + +### Description + +- datasources.yml: UIDs explicites + ajout Sentinel DB (sentinel-pg) + + password POSTGRES_PASSWORD pour PostgreSQL-ThreatIntel/MSF +- stack/01-service-hl.yml: expose POSTGRES_PASSWORD à Grafana, + bump config grafana-datasources_v4→v5 +- stack/47-service-vigie.yml: ajouter réseau monitoring pour scraping Prometheus +- stack/40-service-borodino.yml: REDIS_HOST=valkey pour pentest-exporter +- metrics_exporter.py: os.environ.get('REDIS_HOST','valkey') au lieu de 'redis' hardcodé +- c2-sessions.json: corriger msf_c2_sessions_total_total → msf_c2_sessions_total +- medved/db.py: migration idempotente - DROP au lieu de RENAME si colonne + reported_to_dojo existe déjà (fix crash DuplicateColumnError) + +Co-Authored-By: Claude Sonnet 4.6 + +### Files Changed + +``` +M medved/honeypot/db.py +M samsonov/scripts/metrics_exporter.py +M stack/01-service-hl.yml +M stack/40-service-borodino.yml +M stack/47-service-vigie.yml +M volumes/grafana/dashboards/pentest/c2-sessions.json +M volumes/grafana/provisioning/datasources/datasources.yml +``` + +### Diff Summary + +``` + medved/honeypot/db.py | 21 +++++++++++++-- + samsonov/scripts/metrics_exporter.py | 3 ++- + stack/01-service-hl.yml | 5 ++-- + stack/40-service-borodino.yml | 2 ++ + stack/47-service-vigie.yml | 3 +++ + .../grafana/dashboards/pentest/c2-sessions.json | 4 +-- + .../provisioning/datasources/datasources.yml | 30 +++++++++++++++++++--- + 7 files changed, 58 insertions(+), 10 deletions(-) +```