Skip to content

Commit

Permalink
PMM-12897 Add postgres low resolution queries file to build (#2851)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov authored Mar 7, 2024
1 parent 61d32c9 commit 4879e9c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion build/packages/deb/files
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/p
install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
install -m 0660 queries-postgres-uptime.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
install -m 0660 queries.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
install -m 0660 queries-mr.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
install -m 0660 queries-lr.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/low-resolution/
3 changes: 2 additions & 1 deletion build/packages/deb/install
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ example-queries-postgres.yml /usr/local/percona/pmm2/collectors/custom-queries/p
example-queries-postgres.yml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
example-queries-postgres.yml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
queries-postgres-uptime.yml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
queries.yaml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
queries-mr.yaml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
queries-lr.yaml /usr/local/percona/pmm2/collectors/custom-queries/postgresql/low-resolution/
3 changes: 2 additions & 1 deletion build/packages/deb/rules
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ override_dh_auto_install:
cp -f distro/queries-mysqld-group-replication.yml $(TMP)/queries-mysqld-group-replication.yml
cp -f distro/example-queries-postgres.yml $(TMP)/example-queries-postgres.yml
cp -f distro/queries-postgres-uptime.yml $(TMP)/queries-postgres-uptime.yml
cp -f distro/queries.yaml $(TMP)/queries.yaml
cp -f distro/queries-mr.yaml $(TMP)/queries-mr.yaml
cp -f distro/queries-lr.yaml $(TMP)/queries-lr.yaml
cp -f distro/pt-summary $(TMP)/pt-summary
cp -f distro/pt-mysql-summary $(TMP)/pt-mysql-summary
cp -f distro/pt-mongodb-summary $(TMP)/pt-mongodb-summary
Expand Down
3 changes: 2 additions & 1 deletion build/packages/rpm/client/pmm2-client.spec
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/p
install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
install -m 0660 example-queries-postgres.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
install -m 0660 queries-postgres-uptime.yml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/high-resolution/
install -m 0660 queries.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
install -m 0660 queries-mr.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/medium-resolution/
install -m 0660 queries-lr.yaml $RPM_BUILD_ROOT/usr/local/percona/pmm2/collectors/custom-queries/postgresql/low-resolution/
install -m 0755 -d $RPM_BUILD_ROOT/%{_unitdir}
install -m 0644 config/pmm-agent.service %{buildroot}/%{_unitdir}/pmm-agent.service

Expand Down
3 changes: 2 additions & 1 deletion build/scripts/build-client-binary
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ main() {
copy_component "mysqld_exporter" "queries-mysqld-group-replication.yml"
copy_component "postgres_exporter" "example-queries-postgres.yml"
copy_component "postgres_exporter" "queries-postgres-uptime.yml"
copy_component "postgres_exporter" "queries.yaml"
copy_component "postgres_exporter" "queries-mr.yaml"
copy_component "postgres_exporter" "queries-lr.yaml"

copy_component "percona-toolkit" "bin/pt-summary"
copy_component "percona-toolkit" "bin/pt-mysql-summary"
Expand Down
3 changes: 2 additions & 1 deletion build/scripts/build-client-packages
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ build_source_deb(){
mv queries-mysqld-group-replication.yml ../${NAME}-${VERSION}_all/distro/
mv example-queries-postgres.yml ../${NAME}-${VERSION}_all/distro/
mv queries-postgres-uptime.yml ../${NAME}-${VERSION}_all/distro/
mv queries.yaml ../${NAME}-${VERSION}_all/distro/
mv queries-mr.yaml ../${NAME}-${VERSION}_all/distro/
mv queries-lr.yaml ../${NAME}-${VERSION}_all/distro/
mv debian ../${NAME}-${VERSION}_all/
mv config/pmm-agent.service ../${NAME}-${VERSION}_all/debian/pmm2-client.pmm-agent.service
cd ../
Expand Down
3 changes: 2 additions & 1 deletion build/scripts/install_tarball
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ ${INSTALL_COMMAND} -m 0755 -d "${PMM_DIR}"/collectors/custom-queries/postgresql/
${INSTALL_COMMAND} -m 0755 -d "${PMM_DIR}"/collectors/custom-queries/postgresql/medium-resolution
${INSTALL_COMMAND} -m 0755 -d "${PMM_DIR}"/collectors/custom-queries/postgresql/high-resolution
${INSTALL_COMMAND} -m 0755 queries-postgres-uptime.yml "${PMM_DIR}"/collectors/custom-queries/postgresql/high-resolution
${INSTALL_COMMAND} -m 0755 queries.yaml "${PMM_DIR}"/collectors/custom-queries/postgresql/medium-resolution
${INSTALL_COMMAND} -m 0755 queries-mr.yaml "${PMM_DIR}"/collectors/custom-queries/postgresql/medium-resolution
${INSTALL_COMMAND} -m 0755 queries-lr.yaml "${PMM_DIR}"/collectors/custom-queries/postgresql/low-resolution
${INSTALL_COMMAND} -m 0755 queries-mysqld-group-replication.yml "${PMM_DIR}"/collectors/custom-queries/mysql/high-resolution

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

0 comments on commit 4879e9c

Please sign in to comment.