Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-2635

Improve error message while adding metrics beyond "exit status 1"

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.12.0
    • Component/s: None
    • Labels:
      None

      Description

      I've found that sometimes 'pmm-admin add ' failed for some reason and it returns "exit status 1" error, and this output is not very informative. Would be great to add more debug information or detailed error message.

      I remember that we already fixed this is problem, but now it appears again on build from master (2018-06-18 )

      STR:

      1. Run the next command, (without quotes)
        nailya.kutlubaeva@bm-dell02-qanqa01:~$ sudo pmm-admin add mongodb --uri mongodb://admin:admin@cluster0-shard-00-00-s1yae.mongodb.net:27017/test?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin 
        [1] 10947
        [2] 10948
        nailya.kutlubaeva@bm-dell02-qanqa01:~$ [linux:metrics]   OK, already monitoring this system.
        [mongodb:metrics] exit status 1
        

      pmm-admin returns 'exit status 1' in all cases if pmm-admin failed for some reason

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  nailya.kutlubaeva Nailya Kutlubaeva
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 2 hours, 10 minutes Remaining Estimate - 1 day, 4 hours
                    1d 4h
                    Logged:
                    Time Spent - 2 hours, 10 minutes Remaining Estimate - 1 day, 4 hours
                    2h 10m