Skip to content

Commit 4879e9c

Browse files
PMM-12897 Add postgres low resolution queries file to build (#2851)
1 parent 61d32c9 commit 4879e9c

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

build/packages/deb/files

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@ install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/p
5252
install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
5353
install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
5454
install -m 0660 queries-postgres-uptime.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
55-
install -m 0660 queries.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
55+
install -m 0660 queries-mr.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
56+
install -m 0660 queries-lr.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/low-resolution/

build/packages/deb/install

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ example-queries-postgres.yml /usr/local/percona/pmm2/collectors/custom-queries/p
2323
example-queries-postgres.yml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
2424
example-queries-postgres.yml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
2525
queries-postgres-uptime.yml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
26-
queries.yaml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
26+
queries-mr.yaml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
27+
queries-lr.yaml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/low-resolution/

build/packages/deb/rules

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ override_dh_auto_install:
6262
cp -f distro/queries-mysqld-group-replication.yml $(TMP)/queries-mysqld-group-replication.yml
6363
cp -f distro/example-queries-postgres.yml $(TMP)/example-queries-postgres.yml
6464
cp -f distro/queries-postgres-uptime.yml $(TMP)/queries-postgres-uptime.yml
65-
cp -f distro/queries.yaml $(TMP)/queries.yaml
65+
cp -f distro/queries-mr.yaml $(TMP)/queries-mr.yaml
66+
cp -f distro/queries-lr.yaml $(TMP)/queries-lr.yaml
6667
cp -f distro/pt-summary $(TMP)/pt-summary
6768
cp -f distro/pt-mysql-summary $(TMP)/pt-mysql-summary
6869
cp -f distro/pt-mongodb-summary $(TMP)/pt-mongodb-summary

build/packages/rpm/client/pmm2-client.spec

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/p
8686
install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
8787
install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
8888
install -m 0660 queries-postgres-uptime.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
89-
install -m 0660 queries.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
89+
install -m 0660 queries-mr.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
90+
install -m 0660 queries-lr.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/low-resolution/
9091
install -m 0755 -d $RPM_BUILD_ROOT/%{_unitdir}
9192
install -m 0644 config/pmm-agent.service %{buildroot}/%{_unitdir}/pmm-agent.service
9293

build/scripts/build-client-binary

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ main() {
119119
copy_component "mysqld_exporter" "queries-mysqld-group-replication.yml"
120120
copy_component "postgres_exporter" "example-queries-postgres.yml"
121121
copy_component "postgres_exporter" "queries-postgres-uptime.yml"
122-
copy_component "postgres_exporter" "queries.yaml"
122+
copy_component "postgres_exporter" "queries-mr.yaml"
123+
copy_component "postgres_exporter" "queries-lr.yaml"
123124

124125
copy_component "percona-toolkit" "bin/pt-summary"
125126
copy_component "percona-toolkit" "bin/pt-mysql-summary"

build/scripts/build-client-packages

+2-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ build_source_deb(){
360360
mv queries-mysqld-group-replication.yml ../${NAME}-${VERSION}_all/distro/
361361
mv example-queries-postgres.yml ../${NAME}-${VERSION}_all/distro/
362362
mv queries-postgres-uptime.yml ../${NAME}-${VERSION}_all/distro/
363-
mv queries.yaml ../${NAME}-${VERSION}_all/distro/
363+
mv queries-mr.yaml ../${NAME}-${VERSION}_all/distro/
364+
mv queries-lr.yaml ../${NAME}-${VERSION}_all/distro/
364365
mv debian ../${NAME}-${VERSION}_all/
365366
mv config/pmm-agent.service ../${NAME}-${VERSION}_all/debian/pmm2-client.pmm-agent.service
366367
cd ../

build/scripts/install_tarball

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ ${INSTALL_COMMAND} -m 0755 -d "${PMM_DIR}"/collectors/custom-queries/postgresql/
3939
${INSTALL_COMMAND} -m 0755 -d "${PMM_DIR}"/collectors/custom-queries/postgresql/medium-resolution
4040
${INSTALL_COMMAND} -m 0755 -d "${PMM_DIR}"/collectors/custom-queries/postgresql/high-resolution
4141
${INSTALL_COMMAND} -m 0755 queries-postgres-uptime.yml "${PMM_DIR}"/collectors/custom-queries/postgresql/high-resolution
42-
${INSTALL_COMMAND} -m 0755 queries.yaml "${PMM_DIR}"/collectors/custom-queries/postgresql/medium-resolution
42+
${INSTALL_COMMAND} -m 0755 queries-mr.yaml "${PMM_DIR}"/collectors/custom-queries/postgresql/medium-resolution
43+
${INSTALL_COMMAND} -m 0755 queries-lr.yaml "${PMM_DIR}"/collectors/custom-queries/postgresql/low-resolution
4344
${INSTALL_COMMAND} -m 0755 queries-mysqld-group-replication.yml "${PMM_DIR}"/collectors/custom-queries/mysql/high-resolution
4445

4546
for FILE in $( ls ${PWD}/bin ); do

0 commit comments

Comments
 (0)