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

Clarify --interval option in external Exporters

    Details

      Description

      Hi,

      I notice this is not very clear - It seems to be expecting the unit
      "seconds", "minutes" etc however it is not clear how to specify it. Help
      message does not provide any examples

      [root@ip-172-31-16-160 ~]# pmm-admin add external:service processes
      --service-port=9256 --interval 10
      Error: invalid argument "10" for "--interval" flag: time: missing unit in
      duration 10
      Usage:
      pmm-admin add external:service job_name [instance] --service-port=port
      [flags]

      Flags:
      --force skip reachability check, overwrite scrape job
      parameters
      -h, --help help for external:service
      --interval duration scrape interval
      --path string metrics path
      --scheme string protocol scheme for scrapes
      --timeout duration scrape timeout

      Global Flags:
      -c, --config-file string PMM config file (default
      "/usr/local/percona/pmm-client/pmm.yml")
      --service-port int service port
      --verbose verbose output

      invalid argument "10" for "--interval" flag: time: missing unit in duration
      10


      Peter Zaitsev, CEO, Percona

      Percona Live 2018 Open Source Database Conference
      <https://www.percona.com/live/18/> April 23 - 25, 2018 Santa Clara,CA Get
      Your Ticket Now!, Inquire about Sponsorship!

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  pz Peter Zaitsev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: