Skip to content

Commit

Permalink
Update various kubedb metrics and metric labels (#364)
Browse files Browse the repository at this point in the history
Signed-off-by: kamolhasan <kamol@appscode.com>
  • Loading branch information
Md Kamol Hasan committed Oct 5, 2021
1 parent 37db9b1 commit 1881967
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
valuePath: .spec.authPlugin
- key: db_image
valuePath: .spec.db.image
- key: deprecated
valuePath: .spec.deprecated
- key: distribution
valuePath: .spec.distribution
- key: exporter_image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
labels:
- key: db_image
valuePath: .spec.db.image
- key: deprecated
valuePath: .spec.deprecated
- key: distribution
valuePath: .spec.distribution
- key: exporter_image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
valuePath: .spec.coordinator.image
- key: db_image
valuePath: .spec.db.image
- key: deprecated
valuePath: .spec.deprecated
- key: distribution
valuePath: .spec.distribution
- key: exporter_image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ spec:
apiVersion: kubedb.com/v1alpha2
kind: Elasticsearch
metrics:
- name: kubedb_elasticsearch_created
help: "Unix creation time stamp"
type: gauge
field:
path: .metadata.creationTimestamp
type: DateTime
metricValue:
valueFromPath: .metadata.creationTimestamp

- name: kubedb_elasticsearch_info
help: "Kubedb elasticsearch information"
type: gauge
Expand Down

0 comments on commit 1881967

Please sign in to comment.