Commit cb7c70d 1 parent 358f068 commit cb7c70d Copy full SHA for cb7c70d
File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ apiVersion: v2
2
2
name : cnpg-monitoring
3
3
description : A kube-state-metrics to generate and expose CNPG resources metrics
4
4
type : application
5
- version : 0.1 .0
5
+ version : 0.2 .0
6
6
dependencies :
7
7
- name : kube-state-metrics
8
- version : " 5.25 .*"
8
+ version : " 5.26 .*"
9
9
repository : https://prometheus-community.github.io/helm-charts
Original file line number Diff line number Diff line change @@ -64,6 +64,22 @@ kube-state-metrics:
64
64
type : Gauge
65
65
gauge :
66
66
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]
67
83
labelsFromPath :
68
84
name : [metadata, name]
69
85
namespace : [metadata, namespace]
You can’t perform that action at this time.
0 commit comments