Commit 5bd384e
authored
feat(monitor): add ephemeral storage charge threshold monitoring (#6598)
Add support for monitoring and charging ephemeral storage usage beyond a configurable threshold. Pods with ephemeral storage exceeding the threshold (default 10Gi) will be charged for the excess amount.
Changes:
- Add EPHEMERAL_STORAGE_CHARGE_THRESHOLD environment variable (default: 10Gi)
- Track ephemeral storage usage per pod from container limits/requests
- Apply threshold deduction and charge only for excess usage
- Aggregate ephemeral storage charges into Storage resource metrics
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts:
# controllers/resources/controllers/monitor_controller.go1 parent 5febfce commit 5bd384e
1 file changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
483 | 485 | | |
484 | 486 | | |
485 | 487 | | |
| 488 | + | |
486 | 489 | | |
487 | 490 | | |
488 | 491 | | |
| |||
507 | 510 | | |
508 | 511 | | |
509 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
510 | 522 | | |
511 | 523 | | |
512 | 524 | | |
| |||
0 commit comments