Initial OpenClaw usage exporter
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=OpenClaw daily tokens Prometheus exporter
|
||||
After=network-online.target openclaw-gateway.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/root/.openclaw/workspace/openclaw-daily-tokens-exporter
|
||||
Environment=OPENCLAW_SESSIONS_DIR=/root/.openclaw/agents/main/sessions
|
||||
Environment=OPENCLAW_EXPORTER_TZ=Europe/Berlin
|
||||
ExecStart=/root/.openclaw/workspace/openclaw-daily-tokens-exporter/.venv/bin/uvicorn app:app --host 127.0.0.1 --port 9487
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user