diff --git a/config/kuadrant/clusterrole-patch.yaml b/config/kuadrant/clusterrole-patch.yaml index 42f49d1..129ffb2 100644 --- a/config/kuadrant/clusterrole-patch.yaml +++ b/config/kuadrant/clusterrole-patch.yaml @@ -19,6 +19,7 @@ - ratelimitpolicies - authpolicies - dnsrecords + - dnshealthcheckprobes verbs: - list - watch diff --git a/config/kuadrant/custom-resource-state-kuadrant.yaml b/config/kuadrant/custom-resource-state-kuadrant.yaml index 815b8fa..df7bc63 100644 --- a/config/kuadrant/custom-resource-state-kuadrant.yaml +++ b/config/kuadrant/custom-resource-state-kuadrant.yaml @@ -249,3 +249,22 @@ labelsFromPath: type: ["type"] valueFrom: ["status"] + - groupVersionKind: + group: kuadrant.io + kind: "DNSHealthCheckProbe" + version: "v1alpha1" + metricNamePrefix: kuadrant_dnshealthcheckprobe + labelsFromPath: + name: + - metadata + - name + namespace: + - metadata + - namespace + metrics: + - name: "healthy_status" + help: "DNS Probe current status" + each: + type: Gauge + gauge: + path: [status, healthy] diff --git a/config/kuadrant/custom-resource-state.yaml b/config/kuadrant/custom-resource-state.yaml index 0b753f3..d250346 100644 --- a/config/kuadrant/custom-resource-state.yaml +++ b/config/kuadrant/custom-resource-state.yaml @@ -754,3 +754,22 @@ spec: labelsFromPath: type: ["type"] valueFrom: ["status"] + - groupVersionKind: + group: kuadrant.io + kind: "DNSHealthCheckProbe" + version: "v1alpha1" + metricNamePrefix: kuadrant_dnshealthcheckprobe + labelsFromPath: + name: + - metadata + - name + namespace: + - metadata + - namespace + metrics: + - name: "healthy_status" + help: "DNS Probe current status" + each: + type: Gauge + gauge: + path: [status, healthy]