Skip to content

Commit

Permalink
add catalog version
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman committed Nov 11, 2024
1 parent 6a13413 commit fd717b4
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: metrics.appscode.com/v1alpha1
kind: MetricsConfiguration
metadata:
name: catalog-kubedb-com-clickhouseversion
spec:
targetRef:
apiVersion: catalog.kubedb.com/v1alpha1
kind: ClickHouseVersion
metrics:
- name: created
help: "Unix creation timestamp"
type: gauge
field:
path: .metadata.creationTimestamp
type: DateTime
metricValue:
valueFromPath: .metadata.creationTimestamp
- name: info
help: "ClickHouse versions info"
type: gauge
labels:
- key: db_image
valuePath: .spec.db.image
- key: clickhouse_keeper_image
valuePath: .spec.clickHouseKeeper.image
- key: deprecated
valuePath: .spec.deprecated
metricValue:
value: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: metrics.appscode.com/v1alpha1
kind: MetricsConfiguration
metadata:
name: catalog-kubedb-com-singlestoreversion
spec:
targetRef:
apiVersion: catalog.kubedb.com/v1alpha1
kind: SinglestoreVersion
metrics:
- name: created
help: "Unix creation timestamp"
type: gauge
field:
path: .metadata.creationTimestamp
type: DateTime
metricValue:
valueFromPath: .metadata.creationTimestamp
- name: info
help: "Singlestore versions info"
type: gauge
labels:
- key: db_image
valuePath: .spec.db.image
- key: deprecated
valuePath: .spec.deprecated
metricValue:
value: 1

0 comments on commit fd717b4

Please sign in to comment.