Skip to content

Commit

Permalink
support prometheus monitor labels
Browse files Browse the repository at this point in the history
  • Loading branch information
zlianzhuang committed Mar 2, 2023
1 parent 967a3b2 commit fe75721
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ entries:
postgres-operator:
- apiVersion: v2
appVersion: v1.2.0
created: "2023-02-27T17:32:14.700173698+08:00"
created: "2023-03-02T20:50:29.400542474+08:00"
description: A Helm chart for Kubernetes
digest: cb063dceef83796af658a67d4dbc7ded9fe184a1e2e555775887bf95f2deb157
digest: a0925afe52995460b619ad05bdf2360f9abae19e2bd80a41b8cb65205b9f62f7
home: https://github.com/radondb/multi-platform-postgresql
keywords:
- operator
Expand All @@ -27,7 +27,7 @@ entries:
version: v1.2.0
- apiVersion: v2
appVersion: v1.1.1
created: "2023-02-27T17:32:14.699257239+08:00"
created: "2023-03-02T20:50:29.400067656+08:00"
description: A Helm chart for Kubernetes
digest: 4a536a53eed956e2cf28ffe2addf0625031de1f2581ce40884be94490923d5a2
home: https://github.com/radondb/multi-platform-postgresql
Expand All @@ -51,7 +51,7 @@ entries:
version: v1.0.1
- apiVersion: v2
appVersion: v1.1.0
created: "2023-02-27T17:32:14.698173843+08:00"
created: "2023-03-02T20:50:29.39957879+08:00"
description: A Helm chart for Kubernetes
digest: 1f6593413ae373c5caa7b8c41a3cd3697fbb164ba417260a3fefa6d32a1852e8
home: https://github.com/radondb/multi-platform-postgresql
Expand All @@ -73,4 +73,4 @@ entries:
urls:
- https://radondb.github.io/multi-platform-postgresql/postgres-operator-v1.0.0.tgz
version: v1.0.0
generated: "2023-02-27T17:32:14.697415976+08:00"
generated: "2023-03-02T20:50:29.398678052+08:00"
Binary file modified docs/postgres-operator-v1.2.0.tgz
Binary file not shown.
1 change: 1 addition & 0 deletions helmversions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"template_name": "radondb-postgres-operator",
"template_image": "radondb/radondb-postgres-operator:v1.2.0",
"template_enablePrometheusMonitor": "false",
"template_prometheusMonitorLabels": "{}",
"template_imageRegistry": "",
"template_namespaceOverride": "",

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ kind: ServiceMonitor
metadata:
name: postgres-clusters-monitor
namespace: {{ .Release.Namespace }}
labels:
{{- range $key,$value := .Values.prometheusMonitorLabels }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
selector:
matchLabels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
enablePrometheusMonitor: {{ .template_enablePrometheusMonitor }}
prometheusMonitorLabels: {{ .template_prometheusMonitorLabels }}
localRegistry: {{ .template_imageRegistry }}
namespaceOverride: {{ .template_namespaceOverride }}

Expand Down

0 comments on commit fe75721

Please sign in to comment.