PMM Dump Integration - Phase1

Description

Problem

  • Provide a simple way for the PMM Admin User to collect a PMM data package for the Percona customer support team.

 

Discovery

Roadmap

 

How to test:

pmm-dump UI page available at `http://localhost/graph/pmm-dump`. User should be able to:

  1. Create dump

  2. Delete dump (with actual files on disc, we store them is `/srv/dump/`)

  3. Read dump logs

  4. Download dump archive

  5. Upload dump archive to remove SFTP server

  6. Import dump archive to another PMM server with pmm-dump utility: https://github.com/percona/pmm-dump

pmm-dump import --pmm-url "http://USER:PASS@HOST" --dump-path FILENAME.tar.gz

 Only one dump process can be executed at the same time (i.e. there is no multitasking). All options presented on UI should work.

To run local SFTP server:
docker run --rm -p 22:22 --network="<you pmm server network>" --name="sftpserver" atmoz/sftp foo:pass:::upload
Where `foo` is user, `pass` is password and `upload` is the directory name

SFTP server will be available in the same docker network by url `sftpserver:22`

To check your pmm server network name you can use `docker inspect pmm-server -f "{{json .NetworkSettings.Networks }}"`. Key of the result json object is the network name.

How to test

-

How to document

None

Activity

Show:

saikumar.vs November 21, 2023 at 1:25 PM

verified feature, pls refer for integration testing cases and results.

Done

Details

Assignee

Reporter

Priority

Needs QA

Yes

Needs Doc

No

Planned Version/s

Fix versions

Story Points

Epic Name

Smart Checklist

Created August 29, 2023 at 9:54 AM
Updated December 12, 2023 at 3:40 PM
Resolved December 12, 2023 at 3:31 PM