Skip to content

Commit

Permalink
add new metrics around dnsrecord
Browse files Browse the repository at this point in the history
Signed-off-by: craig <[email protected]>
  • Loading branch information
maleck13 committed Sep 17, 2024
1 parent 88cda97 commit 8619950
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
39 changes: 39 additions & 0 deletions config/default/custom-resource-state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions config/kuadrant/clusterrole-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- dnspolicies
- ratelimitpolicies
- authpolicies
- dnsrecords
verbs:
- list
- watch

0 comments on commit 8619950

Please sign in to comment.