Skip to content

Commit e1e2624

Browse files
committed
fix: 🐛 podmonitor definition
1 parent 3b8cd46 commit e1e2624

File tree

5 files changed

+5
-41
lines changed

5 files changed

+5
-41
lines changed

charts/dso-cnpg/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: cpn-cnpg
33
description: A Helm Chart to deploy easily a CNPG cluster
44
type: application
5-
version: 2.3.2
5+
version: 2.3.3
66
appVersion: 1.0.0
77
keywords: []
88
home: https://cloud-pi-native.fr

charts/dso-cnpg/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cpn-cnpg
22

3-
![Version: 2.3.2](https://img.shields.io/badge/Version-2.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
3+
![Version: 2.3.3](https://img.shields.io/badge/Version-2.3.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
44

55
A Helm Chart to deploy easily a CNPG cluster
66

@@ -56,11 +56,8 @@ A Helm Chart to deploy easily a CNPG cluster
5656
| instances | int | `3` | Number of instances to spawn in the cluster. |
5757
| labels | object | `{}` | Additional cnpg cluster labels. |
5858
| mode | string | `"primary"` | Mode used to deploy the cnpg cluster, it should be `primary`, `replica` or `restore`. |
59-
| monitoring | object | `{"enabled":false,"podMonitorAdditionalLabels":{},"podMonitorMetricRelabelings":[],"podMonitorRelabelings":[]}` | Whether or not PodMonitor should be deployed. |
59+
| monitoring | object | `{"enabled":false}` | Whether or not PodMonitor should be deployed. |
6060
| monitoring.enabled | bool | `false` | Specifies whether the monitoring should be enabled. Requires Prometheus Operator CRDs. |
61-
| monitoring.podMonitorAdditionalLabels | object | `{}` | Additional labels for the podMonitor |
62-
| monitoring.podMonitorMetricRelabelings | list | `[]` | Metrics relabel configurations to apply to samples before ingestion. |
63-
| monitoring.podMonitorRelabelings | list | `[]` | Relabel configurations to apply to samples before scraping. |
6461
| nameOverride | string | `""` | Provide a name in place of the default application name. |
6562
| nodePort | string | `nil` | Port used for NodePort service. Needs `exposed` tu be true. |
6663
| parameters | object | `{}` | Customize Postgresql parameters. |

charts/dso-cnpg/templates/pg-cluster.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,5 @@ spec:
126126
{{- end }}
127127
retentionPolicy: {{ .Values.backup.retentionPolicy }}
128128
{{- end }}
129+
monitoring:
130+
enablePodMonitor: {{ .Values.monitoring.enabled }}

charts/dso-cnpg/templates/podmonitor.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

charts/dso-cnpg/values.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,6 @@ pooler:
132132
monitoring:
133133
# -- Specifies whether the monitoring should be enabled. Requires Prometheus Operator CRDs.
134134
enabled: false
135-
# -- Metrics relabel configurations to apply to samples before ingestion.
136-
podMonitorMetricRelabelings: []
137-
# -- Relabel configurations to apply to samples before scraping.
138-
podMonitorRelabelings: []
139-
# -- Additional labels for the podMonitor
140-
podMonitorAdditionalLabels: {}
141135

142136
# CNPG operator configuration
143137
cnpg-operator:

0 commit comments

Comments
 (0)