Commit 12c4d9f
k8s: add alert listing/query and filter primitives
Add PrometheusAlerts implementation with:
- Alert fetching from platform and user-workload Prometheus/Thanos
- Rule group fetching with namespace-scoped Thanos tenancy queries
- State-based filtering (firing, pending, silenced)
- Label-based flat filtering with key=value matching
- TLS transport with service CA for in-cluster communication
Signed-off-by: avlitman <alitman@redhat.com>
Signed-off-by: Shirly Radco <sradco@redhat.com>
Signed-off-by: machadovilaca <machadovilaca@gmail.com>
Co-authored-by: Cursor AI Agent <cursor-ai@users.noreply.github.com>
Made-with: Cursor1 parent 0480720 commit 12c4d9f
3 files changed
Lines changed: 1006 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
5 | 34 | | |
0 commit comments