Skip to content

Commit

Permalink
feat(cnpg-monitoring): add new metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Tassatux committed Oct 22, 2024
1 parent 358f068 commit cb7c70d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/cnpg-monitoring/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: cnpg-monitoring
description: A kube-state-metrics to generate and expose CNPG resources metrics
type: application
version: 0.1.0
version: 0.2.0
dependencies:
- name: kube-state-metrics
version: "5.25.*"
version: "5.26.*"
repository: https://prometheus-community.github.io/helm-charts
16 changes: 16 additions & 0 deletions charts/cnpg-monitoring/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,22 @@ kube-state-metrics:
type: Gauge
gauge:
path: [status, readyInstances]
- name: primary
help: CNPG pod primary state
each:
type: Gauge
gauge:
path: [status, instancesReportedState]
labelFromKey: pod
valueFrom: [isPrimary]
- name: timeline_id
help: CNPG pod timeline id
each:
type: Gauge
gauge:
path: [status, instancesReportedState]
labelFromKey: pod
valueFrom: [timeLineID]
labelsFromPath:
name: [metadata, name]
namespace: [metadata, namespace]
Expand Down

0 comments on commit cb7c70d

Please sign in to comment.