File tree 5 files changed +28
-6
lines changed
crunchy-postgres-exporter
5 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 204
204
else
205
205
echo_warn " Query file queries_pg_stat_statements_reset_info.yml not loaded."
206
206
fi
207
- elif (( ${VERSION?} >= 140000 ))
207
+ elif (( ${VERSION?} >= 140000 )) && (( ${VERSION?} < 150000 ))
208
208
then
209
209
if [[ -f ${CONFIG_DIR?} /pg14/queries_general.yml ]]
210
210
then
@@ -226,6 +226,28 @@ else
226
226
else
227
227
echo_warn " Query file queries_pg_stat_statements_reset_info.yml not loaded."
228
228
fi
229
+ elif (( ${VERSION?} >= 150000 ))
230
+ then
231
+ if [[ -f ${CONFIG_DIR?} /pg15/queries_general.yml ]]
232
+ then
233
+ cat ${CONFIG_DIR?} /pg15/queries_general.yml >> /tmp/queries.yml
234
+ else
235
+ echo_err " Query file queries_general.yml does not exist (it should).."
236
+ fi
237
+ if [[ -f ${CONFIG_DIR?} /pg15/queries_pg_stat_statements.yml ]]
238
+ then
239
+ cat ${CONFIG_DIR?} /pg15/queries_pg_stat_statements.yml >> /tmp/queries.yml
240
+ else
241
+ echo_warn " Query file queries_pg_stat_statements.yml not loaded."
242
+ fi
243
+ # queries_pg_stat_statements_reset is only available in PG12+. This may
244
+ # need to be updated based on a new path
245
+ if [[ -f ${CONFIG_DIR?} /pg15/queries_pg_stat_statements_reset_info.yml ]];
246
+ then
247
+ cat ${CONFIG_DIR?} /pg15/queries_pg_stat_statements_reset_info.yml >> /tmp/queries.yml
248
+ else
249
+ echo_warn " Query file queries_pg_stat_statements_reset_info.yml not loaded."
250
+ fi
229
251
else
230
252
echo_err " Unknown or unsupported version of PostgreSQL. Exiting.."
231
253
exit 1
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
16
16
echo " Getting pgMonitor..."
17
- PGMONITOR_COMMIT=' v4.7 '
17
+ PGMONITOR_COMMIT=' v4.8.0 '
18
18
19
19
# pgMonitor Setup
20
20
if [[ -d ${PGOROOT?} /tools/pgmonitor ]]
Original file line number Diff line number Diff line change @@ -35,6 +35,6 @@ RUN if [ "$BASEOS" = "ubi8" ] ; then \
35
35
fi
36
36
37
37
# Crunchy PostgreSQL repository
38
- ADD conf/RPM-GPG- KEY-crunchydata * /
38
+ ADD conf/* KEY* /
39
39
ADD conf/crunchypg${PGVERSION}.repo /etc/yum.repos.d/
40
- RUN rpm --import RPM- GPG-KEY-crunchydata*
40
+ RUN rpm --import * GPG-KEY-crunchydata*
Original file line number Diff line number Diff line change 1
1
* .repo
2
2
* .public
3
3
* .private
4
- RPM-GPG- KEY- *
4
+ * KEY *
Original file line number Diff line number Diff line change 19
19
directory=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
20
20
21
21
# The pgMonitor tag to use to refresh the current monitoring installer
22
- pgmonitor_tag=v4.7
22
+ pgmonitor_tag=v4.8.0
23
23
24
24
# Set the directory for the monitoring Kustomize installer
25
25
pgo_examples_monitoring_dir=" ${directory} /../../postgres-operator-examples/kustomize/monitoring"
You can’t perform that action at this time.
0 commit comments