Make repo path canonical runtime
This commit is contained in:
@@ -22,9 +22,16 @@ Timezone defaults to `Europe/Berlin`.
|
|||||||
python3 -m venv .venv
|
python3 -m venv .venv
|
||||||
. .venv/bin/activate
|
. .venv/bin/activate
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
uvicorn app:app --host 127.0.0.1 --port 9487
|
uvicorn app:app --host 0.0.0.0 --port 9487
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Runtime
|
||||||
|
|
||||||
|
- Canonical repo path: `/root/projects/openclaw-usage-exporter`
|
||||||
|
- systemd user unit: `~/.config/systemd/user/openclaw-daily-tokens-exporter.service`
|
||||||
|
- Direct metrics: `http://100.74.255.106:9487/metrics`
|
||||||
|
- Tailscale Serve path: `https://luna.taile7522.ts.net/openclaw-daily-tokens`
|
||||||
|
|
||||||
## Env
|
## Env
|
||||||
|
|
||||||
- `OPENCLAW_SESSIONS_DIR` default: `/root/.openclaw/agents/main/sessions`
|
- `OPENCLAW_SESSIONS_DIR` default: `/root/.openclaw/agents/main/sessions`
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ Wants=network-online.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/root/.openclaw/workspace/openclaw-daily-tokens-exporter
|
WorkingDirectory=/root/projects/openclaw-usage-exporter
|
||||||
Environment=OPENCLAW_SESSIONS_DIR=/root/.openclaw/agents/main/sessions
|
Environment=OPENCLAW_SESSIONS_DIR=/root/.openclaw/agents/main/sessions
|
||||||
Environment=OPENCLAW_EXPORTER_TZ=Europe/Berlin
|
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
|
ExecStart=/root/projects/openclaw-usage-exporter/.venv/bin/uvicorn app:app --host 0.0.0.0 --port 9487
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user