chore(dev): run the mock-metrics emitter under supervisor (single, persistent)

Manage clusev:mock-metrics as a supervisor program in the dev image so exactly
one emitter runs and survives container recreates (no stray exec -d processes).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat/v1-foundation
boban 2026-06-12 14:46:49 +02:00
parent 688e9e7866
commit dc432e7335
1 changed files with 14 additions and 0 deletions

View File

@ -35,6 +35,20 @@ environment=HOME="/home/app",USER="app",NPM_CONFIG_CACHE="/home/app/.npm"
autorestart=true
startretries=3
startsecs=10
; Dev metrics emitter (mock CPU+MEM over Reverb) — replaced by the real MetricsPoller (SSH) later.
[program:metrics]
command=php artisan clusev:mock-metrics --interval=2
directory=/var/www/html
user=app
environment=HOME="/home/app",USER="app"
autostart=true
autorestart=true
startsecs=5
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr