避免 OCI HelmRepository 无 Ready 条件误报 #161
@@ -198,6 +198,9 @@ spec:
|
|||||||
- conditions
|
- conditions
|
||||||
- '[type=Ready]'
|
- '[type=Ready]'
|
||||||
- status
|
- status
|
||||||
|
repository_type:
|
||||||
|
- spec
|
||||||
|
- type
|
||||||
- groupVersionKind:
|
- groupVersionKind:
|
||||||
group: source.toolkit.fluxcd.io
|
group: source.toolkit.fluxcd.io
|
||||||
version: v1
|
version: v1
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ spec:
|
|||||||
description: 检查 OpenBao 可达性与 ESO 身份鉴权;可能影响多个命名空间。
|
description: 检查 OpenBao 可达性与 ESO 身份鉴权;可能影响多个命名空间。
|
||||||
runbook_url: https://git.ddupan.top/panxiao81/homelab-wiki/src/branch/main/guides/monitoring-controllers.md
|
runbook_url: https://git.ddupan.top/panxiao81/homelab-wiki/src/branch/main/guides/monitoring-controllers.md
|
||||||
- alert: FluxResourceNotReady
|
- alert: FluxResourceNotReady
|
||||||
expr: gotk_resource_info{job="kube-state-metrics",ready!="True",suspended!="true"}
|
expr: gotk_resource_info{job="kube-state-metrics",ready!="True",suspended!="true",repository_type!="oci"}
|
||||||
== 1
|
== 1
|
||||||
for: 15m
|
for: 15m
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
@@ -174,3 +174,12 @@ tests:
|
|||||||
summary: Flux 对象状态指标缺失
|
summary: Flux 对象状态指标缺失
|
||||||
description: 检查 kube-state-metrics 自定义资源配置、RBAC 与采集;不能把空结果当作健康。
|
description: 检查 kube-state-metrics 自定义资源配置、RBAC 与采集;不能把空结果当作健康。
|
||||||
runbook_url: https://git.ddupan.top/panxiao81/homelab-wiki/src/branch/main/guides/monitoring-controllers.md
|
runbook_url: https://git.ddupan.top/panxiao81/homelab-wiki/src/branch/main/guides/monitoring-controllers.md
|
||||||
|
- name: OCI HelmRepository 没有 Ready 条件仍不误报
|
||||||
|
interval: 1m
|
||||||
|
input_series:
|
||||||
|
- series: gotk_resource_info{job="kube-state-metrics",customresource_kind="HelmRepository",repository_type="oci",name="envoy-gateway"}
|
||||||
|
values: 1x30
|
||||||
|
alert_rule_test:
|
||||||
|
- eval_time: 20m
|
||||||
|
alertname: FluxResourceNotReady
|
||||||
|
exp_alerts: []
|
||||||
|
|||||||
Reference in New Issue
Block a user