Skip to content

Commit cb7c70d

Browse files
committed
feat(cnpg-monitoring): add new metrics
1 parent 358f068 commit cb7c70d

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

charts/cnpg-monitoring/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: cnpg-monitoring
33
description: A kube-state-metrics to generate and expose CNPG resources metrics
44
type: application
5-
version: 0.1.0
5+
version: 0.2.0
66
dependencies:
77
- name: kube-state-metrics
8-
version: "5.25.*"
8+
version: "5.26.*"
99
repository: https://prometheus-community.github.io/helm-charts

charts/cnpg-monitoring/values.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,22 @@ kube-state-metrics:
6464
type: Gauge
6565
gauge:
6666
path: [status, readyInstances]
67+
- name: primary
68+
help: CNPG pod primary state
69+
each:
70+
type: Gauge
71+
gauge:
72+
path: [status, instancesReportedState]
73+
labelFromKey: pod
74+
valueFrom: [isPrimary]
75+
- name: timeline_id
76+
help: CNPG pod timeline id
77+
each:
78+
type: Gauge
79+
gauge:
80+
path: [status, instancesReportedState]
81+
labelFromKey: pod
82+
valueFrom: [timeLineID]
6783
labelsFromPath:
6884
name: [metadata, name]
6985
namespace: [metadata, namespace]

0 commit comments

Comments
 (0)