Commit a70b72d
authored
Multiple Components: Remove vector(0) from memory hpa query (#12386)
#### What this PR does
Similar to #12384. If we're not
able to compute the value we have to return no series at all. If we
return 0 it means "scale down to HPA min". Consider the following
comparison of the metric with and without `vector(0)`. With the fallback
in-place (yellow) a failure to scrape from 14:22 to 14:32 (second graph,
y-axis == `count(up{...})`) yields a much lower metric, which may allow
the deployment to scale down unexpectedly.
<img width="1205" height="479" alt="Screenshot 2025-08-13 at 8 07 22 PM"
src="https://github.com/user-attachments/assets/22cd545e-593d-4210-97ea-30cebb7ce9e0"
/>
<img width="1230" height="441" alt="Screenshot 2025-08-13 at 8 08 22 PM"
src="https://github.com/user-attachments/assets/f7ce2e70-3e67-456c-b385-4181e058dce1"
/>
#### Which issue(s) this PR fixes or relates to
Fixes #<issue number>
#### Checklist
- [ ] Tests updated.
- [ ] Documentation added.
- [ ] `CHANGELOG.md` updated - the order of entries should be
`[CHANGE]`, `[FEATURE]`, `[ENHANCEMENT]`, `[BUGFIX]`. If changelog entry
is not needed, please add the `changelog-not-needed` label to the PR.
- [ ]
[`about-versioning.md`](https://github.com/grafana/mimir/blob/main/docs/sources/mimir/configure/about-versioning.md)
updated with experimental features.1 parent acd9215 commit a70b72d
File tree
7 files changed
+68
-133
lines changed- operations
- mimir-tests
- mimir
7 files changed
+68
-133
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
1998 | | - | |
| 1998 | + | |
1999 | 1999 | | |
2000 | 2000 | | |
2001 | 2001 | | |
| |||
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
2008 | | - | |
2009 | 2008 | | |
2010 | 2009 | | |
2011 | 2010 | | |
| |||
2067 | 2066 | | |
2068 | 2067 | | |
2069 | 2068 | | |
2070 | | - | |
| 2069 | + | |
2071 | 2070 | | |
2072 | 2071 | | |
2073 | 2072 | | |
| |||
2077 | 2076 | | |
2078 | 2077 | | |
2079 | 2078 | | |
2080 | | - | |
2081 | 2079 | | |
2082 | 2080 | | |
2083 | 2081 | | |
| |||
2182 | 2180 | | |
2183 | 2181 | | |
2184 | 2182 | | |
2185 | | - | |
| 2183 | + | |
2186 | 2184 | | |
2187 | 2185 | | |
2188 | 2186 | | |
| |||
2192 | 2190 | | |
2193 | 2191 | | |
2194 | 2192 | | |
2195 | | - | |
2196 | 2193 | | |
2197 | 2194 | | |
2198 | 2195 | | |
| |||
2244 | 2241 | | |
2245 | 2242 | | |
2246 | 2243 | | |
2247 | | - | |
| 2244 | + | |
2248 | 2245 | | |
2249 | 2246 | | |
2250 | 2247 | | |
| |||
2254 | 2251 | | |
2255 | 2252 | | |
2256 | 2253 | | |
2257 | | - | |
2258 | 2254 | | |
2259 | 2255 | | |
2260 | 2256 | | |
| |||
2306 | 2302 | | |
2307 | 2303 | | |
2308 | 2304 | | |
2309 | | - | |
| 2305 | + | |
2310 | 2306 | | |
2311 | 2307 | | |
2312 | 2308 | | |
| |||
2316 | 2312 | | |
2317 | 2313 | | |
2318 | 2314 | | |
2319 | | - | |
2320 | 2315 | | |
2321 | 2316 | | |
2322 | 2317 | | |
| |||
2376 | 2371 | | |
2377 | 2372 | | |
2378 | 2373 | | |
2379 | | - | |
| 2374 | + | |
2380 | 2375 | | |
2381 | 2376 | | |
2382 | 2377 | | |
| |||
2386 | 2381 | | |
2387 | 2382 | | |
2388 | 2383 | | |
2389 | | - | |
2390 | 2384 | | |
2391 | 2385 | | |
2392 | 2386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
1998 | | - | |
| 1998 | + | |
1999 | 1999 | | |
2000 | 2000 | | |
2001 | 2001 | | |
| |||
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
2008 | | - | |
2009 | 2008 | | |
2010 | 2009 | | |
2011 | 2010 | | |
| |||
2067 | 2066 | | |
2068 | 2067 | | |
2069 | 2068 | | |
2070 | | - | |
| 2069 | + | |
2071 | 2070 | | |
2072 | 2071 | | |
2073 | 2072 | | |
| |||
2077 | 2076 | | |
2078 | 2077 | | |
2079 | 2078 | | |
2080 | | - | |
2081 | 2079 | | |
2082 | 2080 | | |
2083 | 2081 | | |
| |||
2182 | 2180 | | |
2183 | 2181 | | |
2184 | 2182 | | |
2185 | | - | |
| 2183 | + | |
2186 | 2184 | | |
2187 | 2185 | | |
2188 | 2186 | | |
| |||
2192 | 2190 | | |
2193 | 2191 | | |
2194 | 2192 | | |
2195 | | - | |
2196 | 2193 | | |
2197 | 2194 | | |
2198 | 2195 | | |
| |||
2244 | 2241 | | |
2245 | 2242 | | |
2246 | 2243 | | |
2247 | | - | |
| 2244 | + | |
2248 | 2245 | | |
2249 | 2246 | | |
2250 | 2247 | | |
| |||
2254 | 2251 | | |
2255 | 2252 | | |
2256 | 2253 | | |
2257 | | - | |
2258 | 2254 | | |
2259 | 2255 | | |
2260 | 2256 | | |
| |||
2306 | 2302 | | |
2307 | 2303 | | |
2308 | 2304 | | |
2309 | | - | |
| 2305 | + | |
2310 | 2306 | | |
2311 | 2307 | | |
2312 | 2308 | | |
| |||
2316 | 2312 | | |
2317 | 2313 | | |
2318 | 2314 | | |
2319 | | - | |
2320 | 2315 | | |
2321 | 2316 | | |
2322 | 2317 | | |
| |||
2376 | 2371 | | |
2377 | 2372 | | |
2378 | 2373 | | |
2379 | | - | |
| 2374 | + | |
2380 | 2375 | | |
2381 | 2376 | | |
2382 | 2377 | | |
| |||
2386 | 2381 | | |
2387 | 2382 | | |
2388 | 2383 | | |
2389 | | - | |
2390 | 2384 | | |
2391 | 2385 | | |
2392 | 2386 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2610 | 2610 | | |
2611 | 2611 | | |
2612 | 2612 | | |
2613 | | - | |
| 2613 | + | |
2614 | 2614 | | |
2615 | 2615 | | |
2616 | 2616 | | |
| |||
2620 | 2620 | | |
2621 | 2621 | | |
2622 | 2622 | | |
2623 | | - | |
2624 | 2623 | | |
2625 | 2624 | | |
2626 | 2625 | | |
| |||
2682 | 2681 | | |
2683 | 2682 | | |
2684 | 2683 | | |
2685 | | - | |
| 2684 | + | |
2686 | 2685 | | |
2687 | 2686 | | |
2688 | 2687 | | |
| |||
2692 | 2691 | | |
2693 | 2692 | | |
2694 | 2693 | | |
2695 | | - | |
2696 | 2694 | | |
2697 | 2695 | | |
2698 | 2696 | | |
| |||
0 commit comments