Commit e781b81
fix(BA-5878): close accelerator pattern gap for *_power and *_temperature
The window-stat gauge patterns lagged behind what legacy accelerator
plugins actually publish:
- *_power: legacy emits both stats.max and stats.avg; this PR was
emitting only stats.max.
- *_temperature: legacy emits both stats.max and stats.avg; this PR
was emitting neither.
Surveyed plugins (rebellions/common, rebellions/atom_max, habana, ipu,
mock):
- All emit *_mem (max only) and *_util (max + avg).
- Only mock currently emits *_power and *_temperature, both with
{avg, max} filters.
Extend STATS_MAX_GAUGE_METRIC_PATTERNS to include _temperature and
STATS_AVG_GAUGE_METRIC_PATTERNS to include _power and _temperature so
the new pipeline matches what every legacy plugin actually publishes.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 1f50031 commit e781b81
2 files changed
Lines changed: 4 additions & 4 deletions
File tree
- src/ai/backend/common/clients/prometheus
- tests/unit/manager/services/utilization_metric
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
| 823 | + | |
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | | - | |
| 838 | + | |
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
| |||
0 commit comments