diff --git a/config/default/custom-resource-state.yaml b/config/default/custom-resource-state.yaml index f43d5a2..0d51ddd 100644 --- a/config/default/custom-resource-state.yaml +++ b/config/default/custom-resource-state.yaml @@ -512,6 +512,45 @@ spec: labelsFromPath: type: ["type"] valueFrom: ["status"] + - groupVersionKind: + group: kuadrant.io + kind: "DNSRecord" + version: "v1alpha1" + metricNamePrefix: kuadrant_dnsrecord + labelsFromPath: + name: + - metadata + - name + namespace: + - metadata + - namespace + rootDomain: + - spec + - rootHost + metrics: + - name: "created" + help: "created timestamp" + each: + type: Gauge + gauge: + path: [metadata, creationTimestamp] + - name: "status_root_domain_owners" + help: "root domain owners (the ids of controllers managing this root domain)" + each: + type: Info + info: + path: [status, domainOwners] + labelsFromPath: + owner: [] + - name: "status" + help: "status condition" + each: + type: Gauge + gauge: + path: [status, conditions] + labelsFromPath: + type: ["type"] + valueFrom: ["status"] - groupVersionKind: group: kuadrant.io kind: "DNSPolicy" diff --git a/config/kuadrant/clusterrole-patch.yaml b/config/kuadrant/clusterrole-patch.yaml index 3991751..42f49d1 100644 --- a/config/kuadrant/clusterrole-patch.yaml +++ b/config/kuadrant/clusterrole-patch.yaml @@ -18,6 +18,7 @@ - dnspolicies - ratelimitpolicies - authpolicies + - dnsrecords verbs: - list - watch