chore [UKD-346]: фикс метрик

This commit is contained in:
denzel committed 2026-11-13 00:25:11 -05:00
1 parent 2adbacba55
commit 00a6c9d98b
4 files changed
+68 -4

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
[Unit]
Description=OKTP host metrics collector
Wants=network-online.target docker.service
After=network-online.target docker.service
StartLimitIntervalSec=0
[Service]
Type=simple
User=koden
WorkingDirectory=/home/koden/OKTP_SERVER
EnvironmentFile=/home/koden/.local/state/oktp-deploy/metrics.env
EnvironmentFile=/home/koden/.local/state/oktp-deploy/metrics-bind.env
Environment=PYTHONUNBUFFERED=1
Environment=PYTHONDONTWRITEBYTECODE=1
ExecStart=/home/koden/OKTP_SERVER/.venv/bin/python /home/koden/OKTP_SERVER/metrics_agent.py
Restart=always
RestartSec=5
UMask=0077
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target