Skip to content

Commit 3163d08

Browse files
committed
Bumping pgMonitor to v4.8.0.
[SC-16701]
1 parent da682a2 commit 3163d08

File tree

5 files changed

+28
-6
lines changed

5 files changed

+28
-6
lines changed

bin/crunchy-postgres-exporter/start.sh

+23-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ else
204204
else
205205
echo_warn "Query file queries_pg_stat_statements_reset_info.yml not loaded."
206206
fi
207-
elif (( ${VERSION?} >= 140000 ))
207+
elif (( ${VERSION?} >= 140000 )) && (( ${VERSION?} < 150000 ))
208208
then
209209
if [[ -f ${CONFIG_DIR?}/pg14/queries_general.yml ]]
210210
then
@@ -226,6 +226,28 @@ else
226226
else
227227
echo_warn "Query file queries_pg_stat_statements_reset_info.yml not loaded."
228228
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
229251
else
230252
echo_err "Unknown or unsupported version of PostgreSQL. Exiting.."
231253
exit 1

bin/get-pgmonitor.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515

1616
echo "Getting pgMonitor..."
17-
PGMONITOR_COMMIT='v4.7'
17+
PGMONITOR_COMMIT='v4.8.0'
1818

1919
# pgMonitor Setup
2020
if [[ -d ${PGOROOT?}/tools/pgmonitor ]]

build/pgo-base/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ RUN if [ "$BASEOS" = "ubi8" ] ; then \
3535
fi
3636

3737
# Crunchy PostgreSQL repository
38-
ADD conf/RPM-GPG-KEY-crunchydata* /
38+
ADD conf/*KEY* /
3939
ADD conf/crunchypg${PGVERSION}.repo /etc/yum.repos.d/
40-
RUN rpm --import RPM-GPG-KEY-crunchydata*
40+
RUN rpm --import *GPG-KEY-crunchydata*

conf/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
*.repo
22
*.public
33
*.private
4-
RPM-GPG-KEY-*
4+
*KEY*

hack/update-pgmonitor-installer.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
directory=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
2020

2121
# The pgMonitor tag to use to refresh the current monitoring installer
22-
pgmonitor_tag=v4.7
22+
pgmonitor_tag=v4.8.0
2323

2424
# Set the directory for the monitoring Kustomize installer
2525
pgo_examples_monitoring_dir="${directory}/../../postgres-operator-examples/kustomize/monitoring"

0 commit comments

Comments
 (0)