Details

    Description

      Use case

      logs.zip should contain pprof data from server when requested

      Acceptance criteria:

      • When open <pmm>/logs.zip?pprof=1 logs.zip should be downloaded.
      • When run `pmm-admin summary --pprof` logs.zip should be downloaded.

      How to test:
      1. Run PMM ManageD from Feature Build.

      2. Enter DevContainer (make env).

      3. Use CLI (pmm-admin) to acquire achieve :

      $ pmm-admin summary --server-url=http://admin:admin@localhost/
      $ pmm-admin summary --pprof --server-url=http://admin:admin@localhost/

      4. Use HTTP endpoint to acquire achieve:

      $ curl http://admin:admin@localhost/logs.zip -o web-logs.zip
      $ curl http://admin:admin@localhost/logs.zip?pprof=1 -o web-logs-pprof.zip
      

      4. Check that archive without "pprof" flag/parameter do not contain pprof data files.

      5. Check that archive with "pprof" flag/parameter contain pprof data files.

      6. Check that pprof is not corrupred - opened with viewer (ie. https://www.speedscope.app).
       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nurlan.moldomurov Nurlan Moldomurov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Smart Checklist