From 0734b9297d38341bc5240c78cda82debe3f5508e Mon Sep 17 00:00:00 2001 From: Alex Demidoff Date: Thu, 19 Sep 2024 20:47:36 +0300 Subject: [PATCH] PMM-13282 Migrate pmm-dump to v3 (#3143) * PMM-13282 Migrate pmm-dump to v3 * PMM-13282 align pmm-dump version with PMM Server * PMM-13282 fix the author name ) * PMM-13282 fix pmm-url parameter for pmm-dump to connect to --- build/packages/rpm/server/SPECS/pmm-dump.spec | 7 +++++-- managed/services/dump/dump.go | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build/packages/rpm/server/SPECS/pmm-dump.spec b/build/packages/rpm/server/SPECS/pmm-dump.spec index c8882aa25b..9a5e04cf14 100644 --- a/build/packages/rpm/server/SPECS/pmm-dump.spec +++ b/build/packages/rpm/server/SPECS/pmm-dump.spec @@ -2,14 +2,14 @@ %global repo pmm-dump %global provider github.com/percona/%{repo} -%global commit 0d49b27729506dc62950f9fa59147d63df194db2 +%global commit f226dbb3afb62ac4b9b39032935b5694a48d526f %global shortcommit %(c=%{commit}; echo ${c:0:7}) %define build_timestamp %(date -u +"%y%m%d%H%M") %define release 1 %define rpm_release %{release}.%{build_timestamp}.%{shortcommit}%{?dist} Name: pmm-dump -Version: 0.7.0 +Version: 3.0.0 Release: %{rpm_release} Summary: Percona PMM Dump allows to export and import monitoring metrics and query analytics. @@ -37,6 +37,9 @@ install -p -m 0755 pmm-dump %{buildroot}%{_sbindir}/pmm-dump %changelog +* Thu Aug 8 2024 Alex Demidoff - 3.0.0-1 +- PMM-13282 Migrate pmm-dump to v3 API + * Tue Nov 23 2023 Artem Gavrilov - 0.7.0-ga - PMM-12460 Update pmm-dump to v0.7.0-ga version diff --git a/managed/services/dump/dump.go b/managed/services/dump/dump.go index 8b2baf8978..8a0d97a961 100644 --- a/managed/services/dump/dump.go +++ b/managed/services/dump/dump.go @@ -108,7 +108,7 @@ func (s *Service) StartDump(params *Params) (string, error) { pmmDumpCmd := exec.CommandContext(ctx, //nolint:gosec pmmDumpBin, "export", - "--pmm-url=http://127.0.0.1", + "--pmm-url=http://127.0.0.1:8080", fmt.Sprintf("--dump-path=%s", getDumpFilePath(dump.ID))) if params.APIKey != "" {