Initial OpenClaw usage exporter

This commit is contained in:
2026-07-08 21:07:59 +00:00
commit f214e2eafe
5 changed files with 170 additions and 0 deletions
+16
View File
@@ -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