Commit 888d28f
🐛 Fix Prometheus alert parsing to include level-3 headers
The sed pattern '/^##/' was incorrectly matching both level-2 (##) and
level-3 (###) markdown headers, causing it to stop at "### Firing Alerts"
instead of continuing to "## Performance". This resulted in empty alert
sections even when alerts were present.
Changed pattern to '/^## /' (with space) to match only level-2 headers.
**Impact:**
- analyze-profiles.sh now correctly extracts and displays all alerts
- compare-profiles.sh now correctly detects alerts in both test runs
**Example:**
Before: "No Prometheus alerts detected" (incorrect)
After: Shows both pending alerts:
- operator-controller-memory-growth: 132.4kB/sec
- operator-controller-memory-usage: 107.9MB
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent bdd64ec commit 888d28f
2 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
| 293 | + | |
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
| |||
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
304 | | - | |
| 305 | + | |
| 306 | + | |
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
| |||
0 commit comments