Skip to content

Commit 8c1ac35

Browse files
committed
added missing instrumentation option
Signed-off-by: Itay Grudev <itay@verito.digital>
1 parent 2556c14 commit 8c1ac35

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

charts/cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentat
168168
| cluster.monitoring.customQueriesSecret | list | `[]` | The list of secrets containing the custom queries |
169169
| cluster.monitoring.disableDefaultQueries | bool | `false` | Whether the default queries should be injected. Set it to true if you don't want to inject default queries into the cluster. |
170170
| cluster.monitoring.enabled | bool | `false` | Whether to enable monitoring |
171+
| cluster.monitoring.instrumentation.logicalReplication | bool | `true` | Enable logical replication metrics |
171172
| cluster.monitoring.podMonitor.enabled | bool | `true` | Whether to enable the PodMonitor |
172173
| cluster.monitoring.podMonitor.metricRelabelings | list | `[]` | The list of metric relabelings for the PodMonitor. Applied to samples before ingestion. |
173174
| cluster.monitoring.podMonitor.relabelings | list | `[]` | The list of relabelings for the PodMonitor. Applied to samples before scraping. |

charts/cluster/values.schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,14 @@
235235
"enabled": {
236236
"type": "boolean"
237237
},
238+
"instrumentation": {
239+
"type": "object",
240+
"properties": {
241+
"logicalReplication": {
242+
"type": "boolean"
243+
}
244+
}
245+
},
238246
"podMonitor": {
239247
"type": "object",
240248
"properties": {

charts/cluster/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@ cluster:
321321
# -- Exclude specified rules
322322
excludeRules: []
323323
# - CNPGClusterZoneSpreadWarning
324+
# Additional instrumentation via custom metrics
325+
instrumentation:
326+
# -- Enable logical replication metrics
327+
logicalReplication: true
324328
# -- Whether the default queries should be injected.
325329
# Set it to true if you don't want to inject default queries into the cluster.
326330
disableDefaultQueries: false

0 commit comments

Comments
 (0)