File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ apiVersion: v1
22appVersion : " 1.0"
33description : Database Instances for db operator
44name : db-instances
5- version : 2.0 .0
5+ version : 2.1 .0
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ dbinstances:
44 enabled : true
55 engine : postgres
66 monitoring :
7+ autodiscovery : true
78 enabled : true
89 generic :
910 host : postgres-instance-postgresql.postgres
Original file line number Diff line number Diff line change 4444 value : /run/cm/queries/queries.yaml
4545 - name : PG_EXPORTER_CONSTANT_LABELS
4646 value : dbinstance={{ $name }}
47+ {{- if $value.monitoring.autodiscovery }}
48+ - name : PG_EXPORTER_AUTO_DISCOVERY
49+ value : " true"
50+ {{- end }}
4751 image : {{ $exporter.image }}
4852 imagePullPolicy : Always
4953 name : exporter
You can’t perform that action at this time.
0 commit comments