Commit 71231a8
committed
Improvements: rename KvCacheTokensTotal, expand help text, use unit label
- Rename KvCacheTokensTotal -> KvCacheTokensCapacity on VariantDecision,
Actuator.EmitSaturationMetrics, MetricsEmitter.EmitSaturationMetrics,
DeleteSaturationMetrics, and the Prometheus metric name itself
(wva_kv_cache_tokens_total -> wva_kv_cache_tokens_capacity). "Total" was
confusing — the metric is a gauge of capacity, not a cumulative counter.
- Replace the analyzer_version="v1"/"v2" label on wva_required_capacity
with a unit="binary"/"continuous" label. The label's purpose is to
describe the unit of the metric value (a boolean scale-up signal in V1,
a continuous token demand in V2), not the code path that produced it.
"binary"/"continuous" remains meaningful after V1 is deprecated, whereas
"v1"/"v2" becomes vestigial.
Rename VariantDecision.AnalyzerVersion -> RequiredCapacityUnit.
Rename constants.LabelAnalyzerVersion -> LabelUnit.
Rename constants.AnalyzerVersionV1/V2 -> UnitBinary/UnitContinuous.
- Expand help strings on wva_saturation_utilization, wva_spare_capacity,
wva_kv_cache_tokens_used, and wva_kv_cache_tokens_capacity to specify
what is being measured (KV-cache) and how V1 vs V2 paths differ.
- Use constants.LabelUnit, UnitBinary, UnitContinuous in the
wva_required_capacity help string via fmt.Sprintf, for consistency with
how labels are referenced elsewhere.1 parent 0707e1c commit 71231a8
File tree
6 files changed
+193
-135
lines changed- internal
- actuator
- constants
- engines/saturation
- interfaces
- metrics
6 files changed
+193
-135
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | | - | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | | - | |
| 154 | + | |
| 155 | + | |
151 | 156 | | |
152 | | - | |
153 | | - | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
| 767 | + | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
771 | 777 | | |
772 | 778 | | |
773 | 779 | | |
774 | 780 | | |
775 | 781 | | |
776 | | - | |
777 | | - | |
| 782 | + | |
| 783 | + | |
778 | 784 | | |
779 | 785 | | |
780 | 786 | | |
| |||
805 | 811 | | |
806 | 812 | | |
807 | 813 | | |
808 | | - | |
| 814 | + | |
809 | 815 | | |
810 | 816 | | |
811 | | - | |
| 817 | + | |
812 | 818 | | |
813 | 819 | | |
814 | 820 | | |
| |||
1157 | 1163 | | |
1158 | 1164 | | |
1159 | 1165 | | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
1164 | 1172 | | |
1165 | 1173 | | |
1166 | 1174 | | |
1167 | 1175 | | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1168 | 1180 | | |
1169 | 1181 | | |
1170 | 1182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
204 | | - | |
205 | | - | |
| 209 | + | |
| 210 | + | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
210 | | - | |
| 215 | + | |
211 | 216 | | |
212 | 217 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
217 | 224 | | |
218 | 225 | | |
219 | 226 | | |
| |||
0 commit comments