Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-50124

mcstat should list the possible statkeys in help

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 7.1.0
    • 7.1.0
    • memcached
    • None
    • Triaged
    • 1
    • No

    Description

      mcstat provides the following help output

      bash-5.1$ ./mcstat --help
      Usage: mcstat [options] statkey ...
       
      Options:
       
        -h or --host hostname[:port]   The host (with an optional port) to connect to
                                       (for IPv6 use: [address]:port if you'd like to
                                       specify port)
        -p or --port port              The port number to connect to
        -b or --bucket bucketname      The name of the bucket to operate on
        -u or --user username          The name of the user to authenticate as
       
        -P or --password password      The passord to use for authentication
                                       (use '-' to read from standard input, or
                                       set the environment variable CB_PASSWORD)
        --tls[=cert,key]               Use TLS and optionally try to authenticate
                                       by using the provided certificate and
                                       private key.
        -s or --ssl                    Deprecated. Use --tls
        -C or --ssl-cert filename      Deprecated. Use --tls=[cert,key]
        -C or --ssl-cert filename      Deprecated. Use --tls=[cert,key]
        -4 or --ipv4                   Connect over IPv4
        -6 or --ipv6                   Connect over IPv6
        -j or --json                   Print result as JSON (unformatted)
        -J or --json=pretty            Print result in JSON (formatted)
        -I or --impersonate username   Try to impersonate the specified user
        -a or --all-buckets            Iterate buckets that list bucket returns
        --no-color                     Disable colors
        --help                         This help text
        statkey ...  Statistic(s) to request
      

      We should list the various possible statkeys. Currently this can only be found by looking at the code

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              owend Daniel Owen
              owend Daniel Owen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty