@@ -15,7 +15,7 @@ Dynamic resource limit management for Docker containers. Set, monitor, and enfor
1515| ** Network** | Cumulative bytes | Network disconnect |
1616| ** Disk I/O bytes** | Cumulative bytes | cgroup ` io.max ` throttle |
1717| ** Disk I/O ops** | Cumulative operations | cgroup ` io.max ` throttle |
18- | ** Spending** | USD cents | HTTP proxy budget block |
18+ | ** Spending** | USD milli- cents | HTTP proxy budget block |
1919| ** RAM usage B·s** | Byte-seconds (actual RAM × time) | Container kill |
2020| ** Disk usage B·s** | Byte-seconds (actual disk × time) | Container kill |
2121| ** RAM request B·s** | Byte-seconds (ddl RAM limit × time) | Container kill |
@@ -331,12 +331,12 @@ ANTHROPIC_API_KEY=sk-ant-... bash examples/llm-budget-demo.sh
331331
332332Example output:
333333```
334- Request #1: HTTP 200 — model=claude-haiku-4-5-20251001 input=16 output=10
335- Spending: 1 / 5 cents
336- Request #2: HTTP 200 — model=claude-haiku-4-5-20251001 input= 16 output=10
337- Spending: 2 / 5 cents
334+ Request #1: "What is the tallest mountain on Earth? Answer in one sentence."
335+ => Mount Everest is the tallest mountain on Earth.
336+ [ model=claude-haiku-4-5-20251001 tokens: 16 in / 10 out]
337+ Spending: $0.0001 / $0.0005 (13 / 50 milli- cents)
338338...
339- Request #6 : HTTP 429 — Budget exceeded!
339+ Request #4 : HTTP 429 — Budget exceeded!
340340{"error":"spending budget exceeded"}
341341```
342342
@@ -352,7 +352,7 @@ Requests to non-tracked hosts (anything other than `api.openai.com` and `api.ant
352352| Bytes (RAM, disk, network, I/O) | ` 1024 ` , ` 512k ` , ` 256m ` , ` 1g ` , ` 1.5t ` |
353353| Byte-seconds (usage/request B·s) | ` 100g ` , ` 1.5t ` (same byte suffixes, displayed as e.g. ` 1.5G·s ` ) |
354354| I/O operations | Plain integer |
355- | Spending | ` 10.00 ` (USD, stored as cents) |
355+ | Spending | ` 10.00 ` (USD, stored as milli- cents) |
356356
357357## Requirements
358358
0 commit comments