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

Better indentation of columns in `pmm-admin list` output

Details

    Description

      # pmm-admin list
      Service type  Service name         Address and port  Service ID
      PostgreSQL    pmm-server-postgresql 127.0.0.1:5432    /service_id/0ff9abc0-0af4-4838-9e84-27ed0e9aa977
      
      Agent type                  Status     Agent ID                                        Service ID
      pmm_agent                   connected  pmm-server
      node_exporter               running    /agent_id/66e5d75f-15f9-4ca8-96f6-3067bfa6d27b
      postgres_exporter           running    /agent_id/f5eff337-4cf3-4191-8fba-ee7a6cfeea9c  /service_id/0ff9abc0-0af4-4838-9e84-27ed0e9aa977
      postgresql_pgstatements_agent running    /agent_id/431ee7a2-b254-4f93-95a7-b6d93b44c437  /service_id/0ff9abc0-0af4-4838-9e84-27ed0e9aa977
      

      Notice how the last line is off.

      The solution is to use tabwriter: https://golang.org/pkg/text/tabwriter/

      Attachments

        Activity

          People

            jiri.ctvrtka Jiří Čtvrtka
            alexey.palazhchenko Alexey Palazhchenko (Inactive)
            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:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 20 minutes
                20m

                Smart Checklist