mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 06:24:42 +02:00
Ansible roles: - node_exporter : déploie node_exporter v1.9.1 sur storage-01 et gpu-01 avec textfile collector + services systemd. ROCm activé sur gpu-01 uniquement via group_vars. Collecte métriques GPU via sysfs (temp, VRAM, utilisation) — pas de dépendance rocm-smi (remplacé dans ROCm 7.x) - alertmanager_webhook : service Python sur storage-01 (:9093/webhook) reçoit alertes AlertManager et les route vers ask-agent monitor → Hermes Playbooks: node_exporter + alertmanager_webhook ajoutés à storage-01 et gpu-01 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
431 B
Django/Jinja
17 lines
431 B
Django/Jinja
[Unit]
|
|
Description=AlertManager webhook — Hermes monitor bridge
|
|
After=network.target hermes-agent.service
|
|
|
|
[Service]
|
|
User={{ webhook_user }}
|
|
Group={{ webhook_user }}
|
|
Environment=WEBHOOK_PORT={{ webhook_port }}
|
|
ExecStart=/usr/bin/python3 {{ webhook_install_dir }}/webhook.py
|
|
Restart=on-failure
|
|
RestartSec=10s
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=alertmanager-webhook
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|